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