mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Migrate to official pycqa/flake8 hooks repo
Committed via https://github.com/asottile/all-repos
This commit is contained in:
parent
b268b37482
commit
29460606b2
3 changed files with 13 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue