diff --git a/pylint.sh b/pylint.sh index ba7a6c3a..be49ce45 100755 --- a/pylint.sh +++ b/pylint.sh @@ -2,4 +2,4 @@ set -e -x env -pylint -f parseable --rcfile pylint.rc "$@" | tee pylint.out; test $PIPESTATUS -eq 0 +pylint --jobs ${NUMPROCESSES:-1} -f parseable --rcfile pylint.rc "$@" | tee pylint.out; test $PIPESTATUS -eq 0 diff --git a/tox.ini b/tox.ini index 9ce3df31..7582e70d 100644 --- a/tox.ini +++ b/tox.ini @@ -12,6 +12,7 @@ setenv = BRANCH_NAME={env:BRANCH_NAME:} SETUPTOOLS_USE_DISTUTILS=stdlib coverage: COVERAGE=--junitxml=junit-{envname}.xml --cov-report xml --cov-report html --cov=chrono/ --cov-config .coveragerc + deps = pytest-cov pytest-django @@ -38,6 +39,9 @@ commands = codestyle: pre-commit run --all-files --show-diff-on-failure [testenv:pylint] +setenv = + NUMPROCESSES={env:NUMPROCESSES:6} + deps = pytest-django pytest!=5.3.3