Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down
14 changes: 12 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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]
Expand Down Expand Up @@ -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}]
Expand Down