@@ -30,11 +30,9 @@ dev-dependencies = [
30
30
"flake8-broken-line==1.0.0",
31
31
"flake8-comprehensions==3.14.0",
32
32
"flake8-debugger==4.1.2",
33
- "flake8-docstrings==1.7.0",
34
33
"flake8-eradicate==1.5.0",
35
34
"flake8-isort==6.1.1",
36
35
"flake8-quotes==3.4.0",
37
- "flake8-string-format==0.3.0",
38
36
"flake8-pyproject==1.2.3",
39
37
"flake8-bugbear==24.2.6",
40
38
"flake8-rst-docstrings==0.3.0",
@@ -102,7 +100,6 @@ django_settings_module = "app.settings.base"
102
100
103
101
[tool .flake8 ]
104
102
ignore = [
105
- " C812" , # missing trailing comma
106
103
" E701" , # Multiple statements on one line (colon)
107
104
" D100" , # Missing docstring in public module
108
105
" D101" , # Missing docstring in public class
@@ -113,58 +110,9 @@ ignore = [
113
110
" D106" , # Missing docstring in public nested class
114
111
" D107" , # Missing docstring in __init__
115
112
" D401" , # First line should be in imperative mood
116
- " N818" , # exception name should be named with an Error suffix
117
113
" P103" , # other string does contain unindexed parameters
118
114
" W291" , # trailing whitespace
119
115
" W503" , # line break before binary operator
120
- " DAR101" , # Missing parameter(s) in Docstring
121
- " DAR101" , # Missing parameter(s) in Docstring
122
- " DAR201" , # Missing "Returns" in Docstring
123
- " DAR401" , # Missing exception(s) in Raises section
124
- " WPS110" , # Found wrong variable name
125
- " WPS111" , # Found too short name
126
- " WPS112" , # Found private name pattern
127
- " WPS115" , # Found upper-case constant in a class
128
- " WPS120" , # Found regular name with trailing underscore
129
- " WPS121" , # Found usage of a variable marked as unused
130
- " WPS122" , # Found all unused variables definition
131
- " WPS226" , # Found string literal over-use
132
- " WPS305" , # Found `f` string
133
- " WPS306" , # Found class without a base class
134
- " WPS237" , # Found a too complex `f` string
135
- " WPS323" , # Found `%` string formatting
136
- " WPS326" , # Found implicit string concatenation
137
- " WPS329" , # Found useless `except` case
138
- " WPS331" , # Found variables that are only used for `return`:
139
- " WPS337" , # Found multiline conditions
140
- " WPS338" , # Found incorrect order of methods in a class
141
- " WPS347" , # Found vague import that may cause confusion
142
- " WPS348" , # Found a line that starts with a dot
143
- " WPS360" , # Found an unnecessary use of a raw string
144
- " WPS404" , # Found complex default value
145
- " WPS407" , # Found mutable module constant
146
- " WPS412" , # Found `__init__.py` module with logic
147
- " WPS420" , # Found wrong keyword
148
- " WPS421" , # Found wrong function call
149
- " WPS428" , # Found statement that has no effect (for `...`)
150
- " WPS432" , # Found magic number
151
- " WPS433" , # Found nested import
152
- " WPS437" , # Found protected attribute usage
153
- " WPS440" , # Found block variables overlap
154
- " WPS441" , # Found control variable used after block
155
- " WPS453" , # Found executable mismatch: shebang is present but the file is not executable
156
- " WPS458" , # Found imports collision
157
- " WPS529" , # Found implicit `.get()` dict usage
158
- " WPS531" , # Found simplifiable returning `if` condition in a function
159
- " WPS602" , # Found using `@staticmethod`
160
- " WPS604" , # Found incorrect node inside `class` body
161
- " WPS608" , # Found incorrect `super()` call: remove arguments
162
- " WPS615" , # Found unpythonic getter or sette
163
- ]
164
- per-file-ignores = [
165
- " **/settings/*.py:S101" ,
166
- " **/settings/*.py:WPS425" ,
167
- " **/tests/*.py:S101" ,
168
116
]
169
117
exclude = [
170
118
" .git" ,
@@ -176,12 +124,10 @@ exclude = [
176
124
" **/settings/*" ,
177
125
" snapshots" ,
178
126
]
179
- max-arguments = 12
180
127
max-imports = 20
181
128
max-import-from-members = 10
182
129
max-expressions = 12
183
130
max-methods = 10
184
- max-local-variables = 16
185
131
max-module-members = 20
186
132
max-try-body-length = 10
187
133
max-cognitive-average = 10
0 commit comments