From 912e5ccec8cd7d84611879af274d3c33e8416cf9 Mon Sep 17 00:00:00 2001 From: Will Shanks Date: Thu, 2 Nov 2023 13:30:58 -0400 Subject: [PATCH] Remove parallelism from pylint runs in tox Move `posargs` from black to pylint for the tox lint commands so that pylint parallelism can be opted into. --- tox.ini | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tox.ini b/tox.ini index 658e81e57a..d89db5a70c 100644 --- a/tox.ini +++ b/tox.ini @@ -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] @@ -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] @@ -105,4 +105,4 @@ commands = skip_install = true deps = allowlist_externals = rm -commands = rm -rf {toxinidir}/docs/stubs/ {toxinidir}/docs/_build \ No newline at end of file +commands = rm -rf {toxinidir}/docs/stubs/ {toxinidir}/docs/_build