-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.flake8
80 lines (76 loc) · 2.25 KB
/
.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
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
# 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,
# N806: Lowercase variable in a function
N806,
# N803: Lowercase argument name
N803,
# N802: Lowercase functionam name
N802,
# TC002: Third-party imports into type-checking block
TC002,
# TYP001: Guard import for type-checking
TYP001,
# C408: Dict calls
C408,
# C403: List calls
C403,
# SIM904: Dict initialization
SIM904,
# SIM113: Enumerate usage
SIM113
exclude =
.vscode
.github
.ipynb_checkpoints
.git,
__pycache__,
docs/conf.py,
old,
build,
dist,
.venv/*,
.pytest_cache,
.tox,
.python-version,
.mypy_cache,
htmlcov/*,
xmlcov/*,
.coverage,
examples/