mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 13:00:10 -06:00
Implement concurrent execution of individual hooks
This commit is contained in:
@@ -71,4 +71,8 @@ def install_environment(prefix, version, additional_dependencies):
|
||||
|
||||
def run_hook(prefix, hook, file_args):
|
||||
with in_env(prefix, hook['language_version']):
|
||||
return xargs(helpers.to_cmd(hook), file_args)
|
||||
return xargs(
|
||||
helpers.to_cmd(hook),
|
||||
file_args,
|
||||
target_concurrency=helpers.target_concurrency(hook),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user