-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.flake8
More file actions
29 lines (29 loc) · 1.09 KB
/
.flake8
File metadata and controls
29 lines (29 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[flake8]
ignore =
# whitespace before ‘,’, ‘;’, or ‘:’
E203,
# too many leading ‘#’ for block comment
E266,
# line too long (instead we use Bugbear's warning B950)
E501,
# line break before binary operator
W503
# line length is intentionally set to 80 here because black uses Bugbear
# See https://black.readthedocs.io/en/stable/the_black_code_style/current_style.html#line-length for more details
max-line-length = 80
# allowed mccabe complexity (https://en.wikipedia.org/wiki/Cyclomatic_complexity)
max-complexity = 10
select =
# bugbear (https://pypi.org/project/flake8-bugbear/)
B,
# comprehensions (https://pypi.org/project/flake8-comprehensions/)
# mccabe complexity (only C901) (https://github.com/pycqa/mccabe)
C,
# pycodestyle errors (https://pycodestyle.pycqa.org/en/latest/intro.html)
E,
# pyflakes (https://flake8.pycqa.org/en/latest/user/error-codes.html)
F,
# pycodestyle warnings (https://pycodestyle.pycqa.org/en/latest/intro.html)
W,
# simplify (https://pypi.org/project/flake8-simplify/)
SIM