Skip to content

Commit 0c70e6f

Browse files
author
Jussi Kukkonen
committed
tox: Run pylint in parallel
pylint on the legacy code is by far the slowest part of linting (to the extent that parallelizing the tox env itself doesn't really help): pylint can fortunately parallelize itself. Signed-off-by: Jussi Kukkonen <[email protected]>
1 parent 2cc25e7 commit 0c70e6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ commands =
4545
# TODO: configure black and isort args in pyproject.toml (see #1161)
4646
black --check --diff --line-length 80 tuf/api
4747
isort --check --diff --line-length 80 --profile black -p tuf tuf/api
48-
pylint tuf/api --rcfile=tuf/api/pylintrc
48+
pylint -j 0 tuf/api --rcfile=tuf/api/pylintrc
4949

5050
# NOTE: Contrary to what the pylint docs suggest, ignoring full paths does
5151
# work, unfortunately each subdirectory has to be ignored explicitly.
52-
pylint tuf --ignore=tuf/api,tuf/api/serialization
52+
pylint -j 0 tuf --ignore=tuf/api,tuf/api/serialization
5353

5454
mypy
5555

0 commit comments

Comments
 (0)