From df90e8e6551adc6c1c530e41493f916fd806c8d8 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Thu, 8 Jun 2023 16:03:28 +0200 Subject: [PATCH] Move pylint config out of tox --- pyproject.toml | 5 +++++ tox.ini | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index c5613e2f..653e25a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -72,3 +72,8 @@ include_trailing_comma = true force_grid_wrap = 0 use_parentheses = true line_length = 120 + +[tool.pylint.main] +disable = ["missing-docstring","too-many-branches","too-many-return-statements","too-many-ancestors","fixme"] +ignore="tests" +max-line-length = 120 diff --git a/tox.ini b/tox.ini index c83c9b8d..3c191b12 100644 --- a/tox.ini +++ b/tox.ini @@ -19,7 +19,7 @@ requires = commands = django_not_installed: bash pylint_django/tests/test_django_not_installed.sh flake8: flake8 pylint_django/ - pylint: pylint --rcfile=tox.ini -d missing-docstring,too-many-branches,too-many-return-statements,too-many-ancestors,fixme --ignore=tests pylint_django + pylint: pylint pylint_django readme: bash -c "poetry build && twine check dist/*" py{37,38,39,310,311}-django{22,30,31,32,40,41,42}: bash scripts/test.sh --cov=pylint_django clean: find . -type f -name '*.pyc' -delete @@ -54,8 +54,7 @@ allowlist_externals = [flake8] max-line-length = 120 -[pylint] -max-line-length = 120 + [FORMAT] max-line-length=120