mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
use run_language for repository_test
This commit is contained in:
parent
4f6ba18cad
commit
d23990cc8b
2 changed files with 19 additions and 18 deletions
|
|
@ -16,6 +16,8 @@ def run_language(
|
|||
version: str | None = None,
|
||||
deps: Sequence[str] = (),
|
||||
is_local: bool = False,
|
||||
require_serial: bool = True,
|
||||
color: bool = False,
|
||||
) -> tuple[int, bytes]:
|
||||
prefix = Prefix(str(path))
|
||||
version = version or language.get_default_version()
|
||||
|
|
@ -31,8 +33,8 @@ def run_language(
|
|||
args,
|
||||
file_args,
|
||||
is_local=is_local,
|
||||
require_serial=True,
|
||||
color=False,
|
||||
require_serial=require_serial,
|
||||
color=color,
|
||||
)
|
||||
out = out.replace(b'\r\n', b'\n')
|
||||
return ret, out
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue