Migrate to official pycqa/flake8 hooks repo · precommit/pre-commit@2946060 · GitHub
Skip to content

Commit 2946060

Browse files
committed
Migrate to official pycqa/flake8 hooks repo
Committed via https://github.com/asottile/all-repos
1 parent b268b37 commit 2946060

3 files changed

Lines changed: 13 additions & 10 deletions

File tree

.pre-commit-config.yaml

Lines changed: 8 additions & 5 deletions

pre_commit/xargs.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def partition(cmd, varargs, target_concurrency, _max_length=None):
5858

5959
arg_length = _command_length(arg) + 1
6060
if (
61-
total_length + arg_length <= _max_length
62-
and len(ret_cmd) < max_args
61+
total_length + arg_length <= _max_length and
62+
len(ret_cmd) < max_args
6363
):
6464
ret_cmd.append(arg)
6565
total_length += arg_length

tests/conftest.py

Lines changed: 3 additions & 3 deletions

0 commit comments

Comments
 (0)