-
Notifications
You must be signed in to change notification settings - Fork 24
/
setup.cfg
28 lines (26 loc) · 991 Bytes
/
setup.cfg
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
[flake8]
max-line-length=88
exclude = docs,.venv
ignore =
# These rules are not compatible with black (our code formatter).
E203 # "whitespace before ':'"
W503 # "line break occurred before a binary operator"
# Black handles line lengths for us (slightly less strictly than flake8).
E501 # "line too long"
# We allow TODO and XXX comments in code.
# (But we don't allow FIX-ME -- hyphen inserted so this string doesn't show up in
# searches.)
T101 # "fixme found (TODO)"
T102 # "fixme found (XXX)"
per-file-ignores =
# Allow print statements in example code.
build/lib/example/*:T201
example/*:T201
# NOTE On my MacBook this plugin adds about 1 extra second to Flake8's runtime, making
# it about 5s total. That's not trivial, so it might not be worth it to have this
# enabled all the time.
[flake8:local-plugins]
extension =
DNM1 = bionic.flake8.check_dnode_match:Checker
[tool:pytest]
filterwarnings=ignore::DeprecationWarning