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