-
Notifications
You must be signed in to change notification settings - Fork 4
/
.flake8
77 lines (73 loc) · 1.49 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
[flake8]
max-complexity = 6
inline-quotes = double
max-line-length = 120
ignore =
; Do not perform function calls in argument defaults (for dependency injection)
B008,
; Missing docstring
D100, D101, D102, D103, D104, D105, D106, D107,
; Found wrong module name
WPS100,
; Found wrong variable name
WPS110,
; Found module with too many imports
WPS201,
; Found too many module members
WPS202,
; Found overused expression
WPS204,
; Found too many methods
WPS214,
; Found string constant over-use
WPS226,
; Found too long ``try`` body
WPS229,
; Found too high module cognitive complexity
WPS232,
; Found `f` string
WPS305,
; Found class without a base class
WPS306,
; Found complex default value (for dependency injection)
WPS404,
; Found mutable module constant.
WPS407,
; Found `__init__.py` module with logic
WPS412,
; Found too many empty lines in `def`
WPS473,
; Found too many arguments
WPS211,
per-file-ignores =
; all tests
test_*.py,tests.py,tests_*.py,*/tests/*,conftest.py:
; Use of assert detected
S101,
; Found too many local variables
WPS210,
; Found too many arguments
WPS211,
; Found magic number
WPS432,
; all init files
__init__.py:
; ignore not used imports
F401,
; ignore import with wildcard
F403,
; Found wrong metadata variable
WPS410,
exclude =
./.cache,
./.git,
./.idea,
./.mypy_cache,
./.pytest_cache,
./.venv,
./venv,
./env,
./cached_venv,
./docs,
./var,
./.vscode,