-
-
Notifications
You must be signed in to change notification settings - Fork 77
Expand file tree
/
Copy path.flake8
More file actions
61 lines (52 loc) · 1.22 KB
/
Copy path.flake8
File metadata and controls
61 lines (52 loc) · 1.22 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
[flake8]
# Flake8 configuration for Atom project
# Maximum line length
max-line-length = 120
# Exclude directories
exclude =
.git,
__pycache__,
.venv,
venv,
env,
build,
dist,
*.egg-info,
.pytest_cache,
node_modules,
migrations,
# Errors to ignore
ignore =
# E203: Whitespace before ':' (conflicts with Black)
E203
# W503: Line break before binary operator (conflicts with Black)
W503
# E501: Line too long (handled by Black)
# E302: Expected 2 blank lines (style preference)
E302
# E303: Too many blank lines (style preference)
E303
# W293: Blank line contains whitespace (handled by Black)
W293
# W291: Trailing whitespace (handled by Black)
W291
# Per-file ignores
per-file-ignores =
# Tests can have longer lines
*/tests/*:E501
# Migrations are auto-generated
*/alembic/versions/*:E501
# __init__.py files can have unused imports
__init__.py:F401
# Enable additional checks
enable-extensions =
# G: flake8-logging-format
G
# McCabe complexity settings
max-complexity = 15
# Show source code for each error
show-source = True
# Show relevant text for each error
show-pep8 = True
# Statistics
statistics = True