-
Notifications
You must be signed in to change notification settings - Fork 2
/
.flake8
27 lines (27 loc) · 964 Bytes
/
.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
[flake8]
exclude =
# __init__.py file imports raise warnings about unused imports
__init__.py
ignore =
# False positives on imports used only in generic type annotations
F401
# In conflict with modern PEP8, see https://gitlab.com/pycqa/flake8/issues/139
W503
# the next two are hanging indent errors. We exclude these because pylint
# already catches them and in a few places we need to manually suppress
# them to avoid fighting with PyCharm. We'd rather just add one
# suppression comment.
E128
E131
# E203 is often wrong and black is right
E203
# isort handles this now
E402
# already covered by PyLint and gives false positives for typing.overload
F811
# trailing whitespace - black handles it in code; in comments we don't care.
W291
# Let black handle the line lengths
max-line-length = 300
# but black won't touch comments, so flake8 can still handle those
max-doc-length = 100