@@ -41,6 +41,7 @@ flake8-rst-docstrings = "^0.3.0"
41
41
ruff = " ^0.5.7"
42
42
mypy = " ^1.9.0"
43
43
pylint = " ^3.1.0"
44
+ pylint-django = " ^2.5.4"
44
45
safety = " ^3.1.0"
45
46
pytest-randomly = " ^3.15.0"
46
47
faker = " ^28.4.1"
@@ -196,90 +197,6 @@ max-line-length = 100
196
197
count = true
197
198
{%- endif %}
198
199
199
-
200
- [tool .pylint .main ]
201
- ignore = [
202
- " .git" ,
203
- " __pycache__" ,
204
- " .venv" ,
205
- " venv" ,
206
- " tests" ,
207
- " migrations" ,
208
- " settings" ,
209
- " snapshots" ,
210
- ]
211
-
212
- [tool .pylint .master ]
213
- load-plugins =[
214
- " pylint_django" ,
215
- ]
216
- django-settings-module = " app.settings.base"
217
-
218
- [tool .pylint .basic ]
219
- good-names = [" i" , " j" , " k" , " v" , " ex" , " pk" , " r" , " _" ]
220
-
221
- [tool .pylint .classes ]
222
- # List of method names used to declare (i.e. assign) instance attributes.
223
- defining-attr-methods = [" __init__" , " __new__" , " setUp" , " asyncSetUp" , " __post_init__" ]
224
-
225
- # List of member names, which should be excluded from the protected access
226
- # warning.
227
- exclude-protected = [" _asdict" , " _fields" , " _replace" , " _source" , " _make" , " os._exit" ]
228
-
229
- # List of valid names for the first argument in a class method.
230
- valid-classmethod-first-arg = [" cls" ]
231
-
232
- # List of valid names for the first argument in a metaclass class method.
233
- valid-metaclass-classmethod-first-arg = [" mcs" ]
234
-
235
- [tool .pylint .design ]
236
- max-args = 12
237
- max-locals = 16
238
- max-attributes = 30
239
- max-parents = 20
240
- min-public-methods = 0
241
- max-public-methods = 10
242
- max-branches = 15
243
- max-statements = 50
244
- max-bool-expr = 10
245
- max-returns = 10
246
-
247
- [tool .pylint .format ]
248
- max-line-length = 100
249
- max-module-lines = 500
250
-
251
- [tool .pylint ."messages control" ]
252
- confidence = [
253
- " HIGH" ,
254
- " CONTROL_FLOW" ,
255
- " INFERENCE" ,
256
- " INFERENCE_FAILURE" ,
257
- " UNDEFINED" ,
258
- ]
259
- disable = [
260
- " missing-module-docstring" ,
261
- " missing-class-docstring" ,
262
- " missing-function-docstring" ,
263
- " unused-argument" ,
264
- " redefined-builtin" ,
265
- " import-outside-toplevel" ,
266
- " no-else-return" ,
267
- " unspecified-encoding" ,
268
- " duplicate-code" ,
269
- " super-with-arguments" ,
270
- " unsubscriptable-object" ,
271
- " abstract-method" ,
272
- ]
273
-
274
- [tool .pylint .typecheck ]
275
- ignored-classes = [
276
- " optparse.Values" ,
277
- " thread._local" ,
278
- " _thread._local" ,
279
- " argparse.Namespace" ,
280
- ]
281
-
282
-
283
200
{%- if cookiecutter.linter == 'Ruff' %}
284
201
[tool .ruff ]
285
202
src = [" {{cookiecutter.project_name}}" ]
@@ -329,3 +246,53 @@ max-complexity = 10
329
246
[tool .ruff .lint .pydocstyle ]
330
247
convention = " google"
331
248
{%- endif %}
249
+
250
+ [tool .pylint .main ]
251
+ ignore = [
252
+ " .git" ,
253
+ " __pycache__" ,
254
+ " .venv" ,
255
+ " venv" ,
256
+ " tests" ,
257
+ " migrations" ,
258
+ " settings" ,
259
+ " snapshots" ,
260
+ ]
261
+ disable = [
262
+ " missing-module-docstring" ,
263
+ " missing-class-docstring" ,
264
+ " missing-function-docstring" ,
265
+ " unused-argument" ,
266
+ " redefined-builtin" ,
267
+ " import-outside-toplevel" ,
268
+ " no-else-return" ,
269
+ " unsubscriptable-object" ,
270
+ " abstract-method" ,
271
+ ]
272
+
273
+ [tool .pylint .master ]
274
+ load-plugins =[
275
+ " pylint_django" ,
276
+ " pylint.extensions.for_any_all" ,
277
+ " pylint.extensions.consider_ternary_expression" ,
278
+ " pylint.extensions.mccabe" ,
279
+ ]
280
+ django-settings-module = " app.settings.base"
281
+
282
+ [tool .pylint .basic ]
283
+ good-names = [" i" , " j" , " k" , " v" , " ex" , " pk" , " r" , " _" ]
284
+
285
+ [tool .pylint .design ]
286
+ max-args = 12
287
+ max-locals = 16
288
+ max-attributes = 30
289
+ max-parents = 20
290
+ min-public-methods = 0
291
+ max-public-methods = 10
292
+ max-branches = 15
293
+ max-statements = 50
294
+ max-bool-expr = 10
295
+ max-returns = 10
296
+
297
+ [tool .pylint .format ]
298
+ max-module-lines = 500
0 commit comments