Skip to content

Commit

Permalink
Run lint in parallel in runtest.py (#14448)
Browse files Browse the repository at this point in the history
Give flake8 3 parallel processes. Previously it was sequential. 

Assuming that most developers have a machine with at least 4 cores, we
have at least one left for self check, which is run in parallel with
lint.
  • Loading branch information
JukkaL committed Jan 16, 2023
1 parent f37a0ae commit e9f5858
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtests.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
# Self type check
"self": [executable, "-m", "mypy", "--config-file", "mypy_self_check.ini", "-p", "mypy"],
# Lint
"lint": ["flake8", "-j0"],
"lint": ["flake8", "-j3"],
"format-black": ["black", "."],
"format-isort": ["isort", "."],
# Fast test cases only (this is the bulk of the test suite)
Expand Down

0 comments on commit e9f5858

Please sign in to comment.