Clean Code: Apply flake8-simplify to Python

Also flake8-comprehensions which was added to the CI

For flake8-simplify, there are a few false-positives,
e.g. https://github.com/MartinThoma/flake8-simplify/issues/115
This commit is contained in:
Martin Thoma
2022-03-18 22:27:31 +01:00
parent d43ec589c8
commit 3b2739b8a2
28 changed files with 168 additions and 214 deletions

View File

@@ -1,4 +1,5 @@
pytest
flake8
flake8-bugbear
flake8-comprehensions
mypy

View File

@@ -12,8 +12,11 @@ flake8==4.0.1
# via
# -r ci-requirements.in
# flake8-bugbear
# flake8-comprehensions
flake8-bugbear==22.1.11
# via -r ci-requirements.in
flake8-comprehensions==3.8.0
# via -r ci-requirements.in
iniconfig==1.1.1
# via pytest
mccabe==0.6.1