-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.flake8
More file actions
29 lines (25 loc) · 830 Bytes
/
.flake8
File metadata and controls
29 lines (25 loc) · 830 Bytes
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
[flake8]
# It's okay to have lines up to 88 characters long to match Black's default
max-line-length = 100
# W503 and W504 are conflicting rules related to line breaks before or after binary operators.
# Black (the formatter) has chosen to put line breaks before binary operators, so we ignore W503.
ignore =
# ignored because it warns about whitespace around the colon, which black enforces.
E203,
# line break before binary operator
W503,
# line too long (handled by Black anyway)
E501
# Exclude directories/files that shouldn't be checked
exclude =
.git,
__pycache__,
build,
dist,
venv,
*.egg-info
# Set the complexity threshold. This checks the McCabe complexity of your code.
max-complexity = 20
# Ignore F401 for __init__.py files
per-file-ignores =
__init__.py: F401