-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.flake8
More file actions
60 lines (56 loc) · 1.81 KB
/
.flake8
File metadata and controls
60 lines (56 loc) · 1.81 KB
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# flake8 plugins: https://github.com/DmytroLitvinov/awesome-flake8-extensions
# TODO(amir): add flake8-annotations once the API refactor is completed
# TODO(amir): add flake8-annotations-coverage
# TODO(amir): investigate flake8-annotations-complexity
# TODO(amir): add docstring-convention = numpydoc once API refactor is done
# TODO(amir): investigate the tim to roll out https://peps.python.org/pep-0585/
# https://stackoverflow.com/questions/66738753/python-typing-deprecation
# TODO(amir): investigate https://peps.python.org/pep-0563/
[flake8]
max-line-length = 100
ignore =
# TODO(amir): E501 would ignore `max-line-length = 100` rule; we have cases that max-line-length
# are > 100 which is mostly comments and some front-end codes in the code base
# E501: Line too long
E501,
# E203: Whitespace before ':'
E203,
# E402: Module level import not at top of file
E402,
# W503: Line break occurred before a binary operator
W503
# ANN002: Missing type annotation for *args
ANN002,
# ANN003: Missing type annotation for **kwargs
ANN003,
# ANN101: Missing type annotation for self in method
ANN101,
# ANN102: Missing type annotation for cls in classmethod
ANN102,
# ANN202: Missing return type annotation for protected function
ANN202,
# ANN203: Missing return type annotation for secret function
ANN203,
# ANN204: Missing return type annotation for special method
ANN204,
# ANN401: Dynamically typed expressions (typing.Any) are disallowed.
ANN401,
# E800: Commented out code
E800
exclude =
.coverage
.ipynb_checkpoints
.git,
.github
.mypy_cache,
.pytest_cache,
.python-version,
.tox,
.venv/*,
.vscode
__pycache__,
build,
dist,
docs/*,
htmlcov/*,
xmlcov/*,