mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-20 01:24:42 +04:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
455fc07ad9
commit
cc295879b8
2 changed files with 3 additions and 3 deletions
|
|
@ -175,9 +175,9 @@ def xargs(
|
||||||
)
|
)
|
||||||
if dry_run:
|
if dry_run:
|
||||||
for run_cmd in partitions:
|
for run_cmd in partitions:
|
||||||
print("DRY RUN EXEC: ", " ".join(run_cmd))
|
print('DRY RUN EXEC: ', ' '.join(run_cmd))
|
||||||
retcode = 0
|
retcode = 0
|
||||||
stdout = b""
|
stdout = b''
|
||||||
else:
|
else:
|
||||||
threads = min(len(partitions), target_concurrency)
|
threads = min(len(partitions), target_concurrency)
|
||||||
with _thread_mapper(threads) as thread_map:
|
with _thread_mapper(threads) as thread_map:
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ def run_language(
|
||||||
is_local: bool = False,
|
is_local: bool = False,
|
||||||
require_serial: bool = True,
|
require_serial: bool = True,
|
||||||
color: bool = False,
|
color: bool = False,
|
||||||
dry_run: bool = False
|
dry_run: bool = False,
|
||||||
) -> tuple[int, bytes]:
|
) -> tuple[int, bytes]:
|
||||||
prefix = Prefix(str(path))
|
prefix = Prefix(str(path))
|
||||||
version = version or language.get_default_version()
|
version = version or language.get_default_version()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue