-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.flake8
24 lines (21 loc) · 1006 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
[flake8]
max-line-length = 120
max-complexity = 10
# Ignore the following linter problems:
# * A003 class attribute "id" is shadowing a python builtin -> Class attributes don't really shadow
# * E704 multiple statements on one line (def) -> Seems to be faulty
# * W503 line break before binary operator -> We need the like break for complex cases
# * ANN101 Missing type annotation for self in method -> We won't annotate self
# * ANN102 Missing type annotation for cls in classmethod -> We won't annotate cls
# * ANN401 Dynamically typed expressions (typing.Any) are disallowed -> We allow Any
ignore = A003,E704,W503,ANN101,ANN102,ANN401
# We ignore some problems by file:
# * T001 -> Allow print statements in cli tools and error handlers
# * ANN001 -> No type annotations necessary in tests (and fixtures)
per-file-ignores =
main.py:T001
init.py:T001
execute.py:T001
test_*.py:ANN001
*_fixture.py:ANN001
exclude = .git,__pycache__,__init__.py,.mypy_cache,.pytest_cache,test_*.py