Skip to content

Commit

Permalink
Remove parallelism from pylint runs in tox
Browse files Browse the repository at this point in the history
Move `posargs` from black to pylint for the tox lint commands so that
pylint parallelism can be opted into.
  • Loading branch information
wshanks committed Nov 2, 2023
1 parent f339e9d commit 912e5cc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ commands = stestr run {posargs}
[testenv:lint]
envdir = .tox/lint
commands =
black --check {posargs} qiskit_experiments test tools setup.py
pylint -rn -j 0 --rcfile={toxinidir}/.pylintrc qiskit_experiments/ test/ tools/
black --check qiskit_experiments test tools setup.py
pylint -rn {posargs} --rcfile={toxinidir}/.pylintrc qiskit_experiments/ test/ tools/
python {toxinidir}/tools/verify_headers.py

[testenv:lint-incr]
Expand All @@ -62,7 +62,7 @@ allowlist_externals = git
commands =
black --check {posargs} qiskit_experiments test tools setup.py
-git fetch -q https://github.com/Qiskit-Extensions/qiskit-experiments :lint_incr_latest
python {toxinidir}/tools/pylint_incr.py -rn -j4 -sn --paths :/qiskit_experiments/*.py :/test/*.py :/tools/*.py
python {toxinidir}/tools/pylint_incr.py -rn {posargs} -sn --paths :/qiskit_experiments/*.py :/test/*.py :/tools/*.py
python {toxinidir}/tools/verify_headers.py qiskit_experiments test tools

[testenv:black]
Expand Down Expand Up @@ -105,4 +105,4 @@ commands =
skip_install = true
deps =
allowlist_externals = rm
commands = rm -rf {toxinidir}/docs/stubs/ {toxinidir}/docs/_build
commands = rm -rf {toxinidir}/docs/stubs/ {toxinidir}/docs/_build

0 comments on commit 912e5cc

Please sign in to comment.