Skip to content

Commit df90e8e

Browse files
Move pylint config out of tox
1 parent ce829eb commit df90e8e

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,3 +72,8 @@ include_trailing_comma = true
7272
force_grid_wrap = 0
7373
use_parentheses = true
7474
line_length = 120
75+
76+
[tool.pylint.main]
77+
disable = ["missing-docstring","too-many-branches","too-many-return-statements","too-many-ancestors","fixme"]
78+
ignore="tests"
79+
max-line-length = 120

tox.ini

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ requires =
1919
commands =
2020
django_not_installed: bash pylint_django/tests/test_django_not_installed.sh
2121
flake8: flake8 pylint_django/
22-
pylint: pylint --rcfile=tox.ini -d missing-docstring,too-many-branches,too-many-return-statements,too-many-ancestors,fixme --ignore=tests pylint_django
22+
pylint: pylint pylint_django
2323
readme: bash -c "poetry build && twine check dist/*"
2424
py{37,38,39,310,311}-django{22,30,31,32,40,41,42}: bash scripts/test.sh --cov=pylint_django
2525
clean: find . -type f -name '*.pyc' -delete
@@ -54,8 +54,7 @@ allowlist_externals =
5454
[flake8]
5555
max-line-length = 120
5656

57-
[pylint]
58-
max-line-length = 120
57+
5958

6059
[FORMAT]
6160
max-line-length=120

0 commit comments

Comments
 (0)