-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.flake8
35 lines (32 loc) · 1.12 KB
/
.flake8
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
30
31
32
33
34
35
[flake8]
exclude =
.venv
.env
alembic
per-file-ignores =
tests/*.py:D103, D100
ignore =
E203, # Whitespace before ':'
E402, # Import not at top of file
E501, # Line too long
W503, # Line break before binary operator
B006, # Mutable data structures in argument defaults
D107, # Missing docstring in init
F401, # Imported but unused, pylint already does this
E266, # Too many leading '#' for block comment, we use multiple '#' for titles & sections
W0707, # Consider explicitly re-raising using the 'from' keyword (raise-missing-from)
W0702, # No exception type(s) specified (bare-except)
E722, # do not use bare 'except'
W0703, # Catching too general exception Exception (broad-except)
E712, # comparison to True should be 'if cond is True:' or 'if cond:'
E711, # comparison to None should be 'if cond is not None:'
F403 'from .album import *' used; unable to detect undefined names
select =
C, # McCabe complexity
E, # pep8 errors
F, # pyflakes
W, # pep8 warnings
B, # Bugbear plugin
B950,
D, # pydocstyle plugin
max-line-length = 88