From bfb5c19931e2143fe2094a82dd144d2b33689fed Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Sun, 2 Jul 2023 13:52:49 +0200 Subject: [PATCH] Add pylint-django --- poetry.lock | 37 ++++++++++++++++++++++++++++++++++++- pyproject.toml | 6 ++++++ 2 files changed, 42 insertions(+), 1 deletion(-) diff --git a/poetry.lock b/poetry.lock index 7e83fcb..a6defbb 100644 --- a/poetry.lock +++ b/poetry.lock @@ -870,6 +870,41 @@ typing-extensions = {version = ">=3.10.0", markers = "python_version < \"3.10\"" spelling = ["pyenchant (>=3.2,<4.0)"] testutils = ["gitpython (>3)"] +[[package]] +name = "pylint-django" +version = "2.5.3" +description = "A Pylint plugin to help Pylint understand the Django web framework" +category = "dev" +optional = false +python-versions = "*" +files = [ + {file = "pylint-django-2.5.3.tar.gz", hash = "sha256:0ac090d106c62fe33782a1d01bda1610b761bb1c9bf5035ced9d5f23a13d8591"}, + {file = "pylint_django-2.5.3-py3-none-any.whl", hash = "sha256:56b12b6adf56d548412445bd35483034394a1a94901c3f8571980a13882299d5"}, +] + +[package.dependencies] +pylint = ">=2.0,<3" +pylint-plugin-utils = ">=0.7" + +[package.extras] +for-tests = ["coverage", "django-tables2", "django-tastypie", "factory-boy", "pylint (>=2.13)", "pytest", "wheel"] +with-django = ["Django"] + +[[package]] +name = "pylint-plugin-utils" +version = "0.8.2" +description = "Utilities and helpers for writing Pylint plugins" +category = "dev" +optional = false +python-versions = ">=3.7,<4.0" +files = [ + {file = "pylint_plugin_utils-0.8.2-py3-none-any.whl", hash = "sha256:ae11664737aa2effbf26f973a9e0b6779ab7106ec0adc5fe104b0907ca04e507"}, + {file = "pylint_plugin_utils-0.8.2.tar.gz", hash = "sha256:d3cebf68a38ba3fba23a873809155562571386d4c1b03e5b4c4cc26c3eee93e4"}, +] + +[package.dependencies] +pylint = ">=1.7" + [[package]] name = "pytest" version = "7.4.0" @@ -1416,4 +1451,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "^3.9" -content-hash = "bb2e80ca320f2ce8368226db9226aa5da713b24cba28a8e655eadb7e2d0b8b11" +content-hash = "fc3785e16b3eca7e1a9a434fd263845a51866aec392a7bbe8ee0754c1ee724f9" diff --git a/pyproject.toml b/pyproject.toml index 3984a1e..5500241 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,11 @@ [tool.black] line-length = 79 +[tool.pylint] +load-plugins = [ + "pylint_django", +] + [tool.poetry] name = "network_inventory" version = "0.1.0" @@ -65,6 +70,7 @@ yapf = "^0.32.0" python-lsp-server = "^1.7.3" mypy = "^1.4.1" django-stubs = "^4.2.3" +pylint-django = "^2.5.3" [build-system] requires = ["poetry-core>=1.0.0"]