mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
Minor cleanups
This commit is contained in:
parent
9125439c3a
commit
6bac405d40
12 changed files with 17 additions and 63 deletions
|
|
@ -108,9 +108,8 @@ def xargs(cmd, varargs, **kwargs):
|
|||
def run_cmd_partition(run_cmd):
|
||||
return cmd_output(*run_cmd, encoding=None, retcode=None)
|
||||
|
||||
with _thread_mapper(
|
||||
min(len(partitions), target_concurrency),
|
||||
) as thread_map:
|
||||
threads = min(len(partitions), target_concurrency)
|
||||
with _thread_mapper(threads) as thread_map:
|
||||
results = thread_map(run_cmd_partition, partitions)
|
||||
|
||||
for proc_retcode, proc_out, proc_err in results:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue