-
Notifications
You must be signed in to change notification settings - Fork 15
/
.flake8
43 lines (40 loc) · 913 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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[flake8]
max-line-length = 100
max-complexity = 10
exclude =
.git,
__pycache__,
build,
dist,
*.egg-info,
venv,
.venv
extend-ignore =
# Black conflicts with E203 (whitespace before ':')
E203,
# Line break before binary operator (Black formats this way)
W503,
# Lambda assignments (used in routes)
E731,
# Bugbear errors that might cause recursion
B023,
# Ignore nested function definition
B006,
# Ignore missing docstring in public module/package/class/function/method
D100,
D101,
D104,
D102,
D103,
D105,
D106,
D107,
per-file-ignores =
# Allow unused imports in __init__.py
__init__.py: F401
# Allow longer lines in config files
config.py: E501
# Limit the plugins to avoid recursion issues
enable-extensions = B
# Increased recursion depth adjustment for bugbear
max-recursion-depth = 1000