Skip to content

Commit 31c0631

Browse files
committed
Return Pylint config back to pyproject.toml
1 parent 27811f0 commit 31c0631

File tree

2 files changed

+50
-52
lines changed

2 files changed

+50
-52
lines changed

{{cookiecutter.project_name}}/.pylintrc.toml

-52
This file was deleted.

{{cookiecutter.project_name}}/pyproject.toml

+50
Original file line numberDiff line numberDiff line change
@@ -246,3 +246,53 @@ max-complexity = 10
246246
[tool.ruff.lint.pydocstyle]
247247
convention = "google"
248248
{%- 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

Comments
 (0)