Skip to content

Commit

Permalink
tox: Run pylint in parallel
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Jussi Kukkonen committed May 17, 2021
1 parent 2cc25e7 commit 0c70e6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ commands =
# TODO: configure black and isort args in pyproject.toml (see #1161)
black --check --diff --line-length 80 tuf/api
isort --check --diff --line-length 80 --profile black -p tuf tuf/api
pylint tuf/api --rcfile=tuf/api/pylintrc
pylint -j 0 tuf/api --rcfile=tuf/api/pylintrc

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

mypy

Expand Down

0 comments on commit 0c70e6f

Please sign in to comment.