diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 15bb70c..d76d082 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -32,7 +32,7 @@ jobs: - name: Test with tox run: | pyenv="py$(echo "${{ matrix.python-version }}" | tr -d '.')" - tox -e ${pyenv}-test,${pyenv}-rapidjson,flake8,lint + tox -e ${pyenv}-test,${pyenv}-rapidjson,flake8,${pyenv}-lint - name: Check code format with black if: matrix.python-version == '3.9' run: tox -e black diff --git a/setup.cfg b/setup.cfg index d328883..63874ac 100644 --- a/setup.cfg +++ b/setup.cfg @@ -10,7 +10,6 @@ markers = [pylint] reports = no max-line-length = 88 -max-positional-arguments = 6 disable = locally-disabled,consider-using-f-string,invalid-name,too-few-public-methods msg-template = {path}:{line}: [{msg_id}({symbol}), {obj}] {msg} diff --git a/tox.ini b/tox.ini index 358845f..0b8c306 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = {py35,py36,py37,py38,py39}-{test,rapidjson},lint,flake8,check_package,black +envlist = py3{5,6,7,8,9,10,11,12}-{test,rapidjson,lint},flake8,check_package,black skip_missing_interpreters = true [testenv] @@ -37,12 +37,22 @@ deps = commands = pytest -m "rapidjson" {posargs} -[testenv:lint] +[testenv:py3{5,6,7,8}-lint] deps = pylint pytest commands = pylint --rcfile=setup.cfg {envsitepackagesdir}/{env:package} + # This does not check files in 'tests/utils/applications' + +[testenv:py3{9,10,11,12}-lint] +deps = + pylint + pytest +commands = + # older pylint versions are incompatible with `too-many-positional-arguments`, + # therefore it can not be added to the setup.cfg + pylint --disable=too-many-positional-arguments --rcfile=setup.cfg {envsitepackagesdir}/{env:package} # This does not check files in 'tests/utils/application' [testenv:{build,clean}]