From b42710eff585a75006b7666ab06e120befdc2d70 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Tue, 16 Jan 2024 16:28:00 +0000 Subject: [PATCH] move load plugins to pyproject.toml --- .vscode/settings.json | 3 +-- pyproject.toml | 7 ++++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index 2454f853..73dc8602 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -30,8 +30,7 @@ "pylint" ], "pylint.args": [ - "--rcfile=pyproject.toml", - "--load-plugins=pylint_django" + "--rcfile=pyproject.toml" ], "python.testing.pytestArgs": [ "-n=auto", diff --git a/pyproject.toml b/pyproject.toml index c82828d3..0d57c45b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -12,9 +12,6 @@ extend-exclude = ".*/migrations/.*py" [tool.pytest.ini_options] env = ["DJANGO_SETTINGS_MODULE=manage"] -[tool.pylint.MASTER] -ignore-paths = [".*/migrations/.*py"] - [tool.mypy] plugins = ["mypy_django_plugin.main", "mypy_drf_plugin.main"] check_untyped_defs = true @@ -28,6 +25,10 @@ init-hook = "import os; os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'manage' [tool.pylint.format] max-line-length = 80 +[tool.pylint.MASTER] +ignore-paths = [".*/migrations/.*py"] +load-plugins = "pylint_django" + [tool.isort] profile = "black" line_length = 80