-
Notifications
You must be signed in to change notification settings - Fork 0
/
.flake8
42 lines (32 loc) · 1.25 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
41
42
[flake8]
ignore =
# Ignore "multiple spaces before operator" to improve code readability
E221,
# Ignore "missing whitespace around arithmetic operator" to improve
# code readability
E226,
# Ignore "multiple spaces after ','" to improve code readability
E241,
# Ignore "unexpected spaces around keyword / parameter equals" to
# improve code readability
E251,
# Allow block comments with multiple leading '#' characters to improve
# code readability by making it easier to identify comment section headers
E266,
# Ignore "invalid escape sequence" to prevent flagging false positives
# in docstrings
W605,
# Allow line breaks before binary operators (matches PEP 8 style)
W503,
exclude =
__pycache__
per-file-ignores =
# Prevent "imported but unused" and "unable to detect undefined names"
# errors for __init__.py files
__init__.py: F401, F403
# Prevents "expected 2 blank lines, found 1" warnings before class
# definitions in files containing exclusively a list of customized
# exceptions. In these files, the objective is to list a classes, so
# allowing tighter spacing reduces file length and improves readability
exceptions.py: E302
max-line-length = 85