mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-25 16:48:57 -05:00
Force serial hook runs during tests
This commit is contained in:
@@ -50,7 +50,7 @@ def no_install(prefix, version, additional_dependencies):
|
||||
|
||||
|
||||
def target_concurrency(hook):
|
||||
if hook['require_serial']:
|
||||
if hook['require_serial'] or 'PRE_COMMIT_NO_CONCURRENCY' in os.environ:
|
||||
return 1
|
||||
else:
|
||||
# Travis appears to have a bunch of CPUs, but we can't use them all.
|
||||
|
||||
Reference in New Issue
Block a user