Increase pylint processes
The default process concurrency for pylint is 1. Since our gate
images used to run the job have 8 cores, this results in slower
job execution with many cores sitting idle. To speed things up,
this sets the process count to match the number of cores available.
"""pylint error checking."""
import json
+import multiprocessing
import re
import sys
@@ -204,6 +205,7 @@ def run_pylint():
reporter = text.TextReporter(output=buff)
args = [
"--msg-template='{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}'",
+ "-j", "%s" % multiprocessing.cpu_count(),
"-E", "cinder"]
lint.Run(args, reporter=reporter, exit=False)
val = buff.getvalue()
