-
Notifications
You must be signed in to change notification settings - Fork 6
/
.flake8
99 lines (92 loc) · 1.79 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
[flake8]
max-complexity = 6
min-coverage-percents = 80
ignore =
; Found `f` string
WPS305,
; Missing docstring in public module
D100,
; Found class without a base class
WPS306,
; Missing docstring in public nested class
D106,
; Found `__init__.py` module with logic
WPS412,
; Found implicit string concatenation
WPS326,
; Found string constant over-use
WPS226,
; Found upper-case constant in a class
WPS115,
; f-string missing prefix
FS003,
; Found a too complex `f` string
WPS237,
; Found wrong metadata variable
WPS410,
per-file-ignores =
; all tests
test_*.py,tests.py,tests_*.py,*/tests/*:
; Use of assert detected
S101,
; ignore type annotations coverage
TAE001,
; Missing docstring in public package
D104,
; Found protected attribute usage
WPS437,
; Found too many local variables
WPS210,
; Found magic number
WPS432,
; Found too many arguments
WPS211,
; Found too many `assert` statements
WPS218,
; Found too many methods
WPS214,
; all init files
__init__.py:
; ignore not used imports
F401,
; ignore import with wildcard
F403,
; conftest file
conftest.py:
; Found protected module import
WPS436,
; isort found an import in the wrong position
I001,
; isort found an unexpected blank line in imports
I004,
; unable to detect undefined names
F403,
; imported but unused
F401,
; Found vague import that may cause confusion
WPS347,
; Found wrong magic comment
WPS400,
; all models
models.py:
; too few type annotations
TAE001,
; Found magic number
WPS432
exclude =
./.git,
./venv,
./.venv,
./cached_venv,
./frontend,
./static,
./static_build,
./deploy,
./var,
./templates,
*migrations*,
manage.py,
settings.py,
application-import-names =
http_stubs,
kesha,