diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 54ac370..b1664c1 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ repos: # hooks: # - id: flake8 - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.931 + rev: v0.942 hooks: - id: mypy - repo: https://github.com/asottile/seed-isort-config @@ -33,7 +33,7 @@ repos: hooks: - id: black - repo: https://github.com/asottile/pyupgrade - rev: v2.31.0 + rev: v2.31.1 hooks: - id: pyupgrade args: [--py36-plus] diff --git a/CHANGELOG.md b/CHANGELOG.md index e4b61aa..f32dbbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,30 @@ Release History =============== +### 0.18.2 +Released on 26.03.2022 + +Removed rules due to false-positives: + +* SIM204: Use 'a >= b' instead of 'not (a < b)' +* SIM205: Use 'a > b' instead of 'not (a <= b)' +* SIM206: Use 'a <= b' instead of 'not (a > b)' +* SIM207: Use 'a < b' instead of 'not (a <= b)' + +Fixed false-positives: + +* SIM113: Use enumerate instead of manually incrementing a counter + +Maintenance: + +* Split a way-too-big module into smaller modules + +### 0.18.1 +Released on 24.02.2022 + +Only distribute the `flake8_simplify` package. `0.18.0` did also distribute +the `tests` package which caused issues in some systems. + ### 0.18.0 Released on 20.02.2022 diff --git a/requirements/dev.txt b/requirements/dev.txt index 6b509d7..f9986de 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,5 +1,5 @@ # -# This file is autogenerated by pip-compile with python 3.7 +# This file is autogenerated by pip-compile with python 3.10 # To update, run: # # pip-compile requirements/dev.in @@ -16,47 +16,41 @@ cfgv==3.3.1 # via pre-commit charset-normalizer==2.0.12 # via requests -click==8.0.3 +click==8.0.4 # via pip-tools colorama==0.4.4 # via twine -coverage[toml]==6.3.1 +coverage[toml]==6.3.2 # via pytest-cov -cryptography==36.0.1 +cryptography==36.0.2 # via secretstorage distlib==0.3.4 # via virtualenv docutils==0.18.1 # via readme-renderer -filelock==3.5.1 +filelock==3.6.0 # via virtualenv -identify==2.4.10 +identify==2.4.12 # via pre-commit idna==3.3 # via requests -importlib-metadata==4.11.1 +importlib-metadata==4.11.3 # via - # click # keyring - # pep517 - # pluggy - # pre-commit - # pytest # twine - # virtualenv iniconfig==1.1.1 # via pytest jeepney==0.7.1 # via # keyring # secretstorage -jinja2==3.0.3 +jinja2==3.1.1 # via junit2html junit2html==30.0.6 # via -r requirements/dev.in keyring==23.5.0 # via twine -markupsafe==2.0.1 +markupsafe==2.1.1 # via jinja2 nodeenv==1.6.0 # via pre-commit @@ -70,7 +64,7 @@ pip-tools==6.5.1 # via -r requirements/dev.in pkginfo==1.8.2 # via twine -platformdirs==2.5.0 +platformdirs==2.5.1 # via virtualenv pluggy==1.0.0 # via pytest @@ -84,7 +78,7 @@ pygments==2.11.2 # via readme-renderer pyparsing==3.0.7 # via packaging -pytest==7.0.1 +pytest==7.1.1 # via # -r requirements/dev.in # pytest-cov @@ -95,7 +89,7 @@ pytest-timeout==2.1.0 # via -r requirements/dev.in pyyaml==6.0 # via pre-commit -readme-renderer==32.0 +readme-renderer==34.0 # via twine requests==2.27.1 # via @@ -118,17 +112,15 @@ tomli==2.0.1 # coverage # pep517 # pytest -tqdm==4.62.3 +tqdm==4.63.1 # via twine twine==3.8.0 # via -r requirements/dev.in -typing-extensions==4.1.1 - # via importlib-metadata -urllib3==1.26.8 +urllib3==1.26.9 # via # requests # twine -virtualenv==20.13.1 +virtualenv==20.14.0 # via pre-commit webencodings==0.5.1 # via bleach @@ -137,9 +129,7 @@ wheel==0.37.1 # -r requirements/dev.in # pip-tools zipp==3.7.0 - # via - # importlib-metadata - # pep517 + # via importlib-metadata # The following packages are considered to be unsafe in a requirements file: # pip diff --git a/requirements/lint.txt b/requirements/lint.txt index 5d47f03..cb67790 100644 --- a/requirements/lint.txt +++ b/requirements/lint.txt @@ -1,17 +1,17 @@ # -# This file is autogenerated by pip-compile with python 3.7 +# This file is autogenerated by pip-compile with python 3.10 # To update, run: # # pip-compile requirements/lint.in # -attrs==20.3.0 +attrs==21.4.0 # via # flake8-bugbear # flake8-eradicate # flake8-implicit-str-concat black==22.1.0 # via -r requirements/lint.in -click==8.0.3 +click==8.0.4 # via black eradicate==2.0.0 # via flake8-eradicate @@ -26,7 +26,7 @@ flake8==4.0.1 # flake8-isort # flake8-raise # flake8-string-format -flake8-bugbear==22.1.11 +flake8-bugbear==22.3.23 # via -r requirements/lint.in flake8-builtins==1.5.3 # via -r requirements/lint.in @@ -36,7 +36,7 @@ flake8-eradicate==1.2.0 # via -r requirements/lint.in flake8-executable==2.1.1 # via -r requirements/lint.in -flake8-implicit-str-concat==0.2.0 +flake8-implicit-str-concat==0.3.0 # via -r requirements/lint.in flake8-isort==4.1.1 # via -r requirements/lint.in @@ -48,12 +48,6 @@ flake8-raise==0.0.5 # via -r requirements/lint.in flake8-string-format==0.3.0 # via -r requirements/lint.in -importlib-metadata==4.2.0 - # via - # click - # flake8 - # flake8-comprehensions - # flake8-raise isort==5.10.1 # via flake8-isort mccabe==0.6.1 @@ -62,7 +56,7 @@ mccabe==0.6.1 # flake8 more-itertools==8.12.0 # via flake8-implicit-str-concat -mypy==0.931 +mypy==0.942 # via -r requirements/lint.in mypy-extensions==0.4.3 # via @@ -70,7 +64,7 @@ mypy-extensions==0.4.3 # mypy pathspec==0.9.0 # via black -platformdirs==2.5.0 +platformdirs==2.5.1 # via black pycodestyle==2.8.0 # via flake8 @@ -80,20 +74,11 @@ pyflakes==2.4.0 # via flake8 snowballstemmer==2.2.0 # via pydocstyle -testfixtures==6.18.3 +testfixtures==6.18.5 # via flake8-isort tomli==2.0.1 # via # black # mypy -typed-ast==1.5.2 - # via - # black - # mypy typing-extensions==4.1.1 - # via - # black - # importlib-metadata - # mypy -zipp==3.7.0 - # via importlib-metadata + # via mypy diff --git a/setup.cfg b/setup.cfg index f614c89..26c8a60 100644 --- a/setup.cfg +++ b/setup.cfg @@ -7,7 +7,7 @@ author_email = info@martin-thoma.de maintainer = Martin Thoma maintainer_email = info@martin-thoma.de -version = 0.18.1 +version = 0.18.2 description = flake8 plugin which checks for code that can be simplified long_description = file: README.md