-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flake8
40 lines (35 loc) · 1.07 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
36
37
38
39
40
[flake8]
# Activate rules by plugins
extend-select =
# flake8-bugbear
B, B902, B903,
# flake8-comprehensions
C4,
# pydocstyle (by flake8-docstrings)
D,
# logging-format (by flake8-logging-format)
G0,
# just don't use these...
ignore =
# line break before binary operator
W503,
# whitespace before colon
# This was added during string processing for syntax like
# ``line[line.index(" ") :]``, as ``black`` inserts that whitespace
# in front of the colon. The general rule of E203 is still desired, but
# let's delegate this to ``black``.
E203,
# line length (of code) is handled by black
E501,
#per-file-ignores =
# ...and limit flake8 to the project's very own source code
exclude =
.git,
.util-venv,
# Actually, try to stay below 80 characters for docstrings.
# But enforcing this does not work, when linking to other classes / attributes
# in the first line of the docstring.
# So, let's rely on convention instead.
max-doc-length = 119
# set the used convention for pydocstyle
docstring-convention = numpy