Debian Codegraph @

.flake8

raw
1 # flake8 doesn't support pyproject.toml yet https://github.com/PyCQA/flake8/issues/234
2 [flake8]
3 # References:
4 # https://flake8.readthedocs.io/en/latest/user/configuration.html
5 # https://flake8.readthedocs.io/en/latest/user/error-codes.html
6 # https://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
7 exclude = __init__.py
8 ignore =
9 # Extra space in brackets
10 E20
11 # Multiple spaces around ","
12 E231,E241
13 # Comments
14 E26
15 # Import formatting
16 E4
17 # Comparing types instead of isinstance
18 E721
19 # Assigning lambda expression
20 E731
21 # Ambiguous variable names
22 E741
23 # Line break before binary operator
24 W503
25 # Line break after binary operator
26 W504
27 # Redefinition of unused 'loop' from line 10
28 F811
29 # No explicit stacklevel in warnings.warn. FIXME we should correct this in the code
30 B028
31 # multiple statements on one line; required for black compat
32 E701, E704
33
34 max-line-length = 120
35 per-file-ignores =
36 *_test.py:
37 # Do not call assert False since python -O removes these calls
38 B011,
39 **/tests/*:
40 # Do not call assert False since python -O removes these calls
41 B011,