Pylint: use -j 0 arg
"-j 0" runs on the number of CPUs available, just
pass that instead of counting CPUs ourselves.
(This removes a stealthy python2 dependency, too.)
@@ -28,7 +28,6 @@ process_options() {
run_pylint() {
local target="${scriptargs:-HEAD~1}"
- local concurrency=$(python -c 'import multiprocessing as mp; print(mp.cpu_count())')
CODE_OKAY=0
if [[ "$target" = *"all"* ]]; then
@@ -46,14 +45,14 @@ run_pylint() {
echo "Running pylint against manila code modules:"
printf "\t%s\n" "${files[@]}"
pylint --rcfile=.pylintrc --output-format=colorized ${files} \
- -E -j $concurrency || CODE_OKAY=1
+ -E -j 0 || CODE_OKAY=1
fi
if [[ -n "${test_files}" ]]; then
echo "Running pylint against manila test modules:"
printf "\t%s\n" "${test_files[@]}"
pylint --rcfile=.pylintrc --output-format=colorized ${test_files} \
-E -d "no-member,assignment-from-no-return,assignment-from-none" \
- -j $concurrency || CODE_OKAY=1
+ -j 0 || CODE_OKAY=1
fi
exit $CODE_OKAY
}
