mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-22 00:40:14 -06:00
Migrate to official pycqa/flake8 hooks repo
Committed via https://github.com/asottile/all-repos
This commit is contained in:
@@ -58,8 +58,8 @@ def partition(cmd, varargs, target_concurrency, _max_length=None):
|
||||
|
||||
arg_length = _command_length(arg) + 1
|
||||
if (
|
||||
total_length + arg_length <= _max_length
|
||||
and len(ret_cmd) < max_args
|
||||
total_length + arg_length <= _max_length and
|
||||
len(ret_cmd) < max_args
|
||||
):
|
||||
ret_cmd.append(arg)
|
||||
total_length += arg_length
|
||||
|
||||
Reference in New Issue
Block a user