mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-05-06 23:39:13 -05:00
fix r local hooks
`language: r` acts more like `language: script` so we have to *not* append the prefix when run with `repo: local`
This commit is contained in:
@@ -16,6 +16,7 @@ def run_language(
|
||||
file_args: Sequence[str] = (),
|
||||
version: str = C.DEFAULT,
|
||||
deps: Sequence[str] = (),
|
||||
is_local: bool = False,
|
||||
) -> tuple[int, bytes]:
|
||||
prefix = Prefix(str(path))
|
||||
|
||||
@@ -26,6 +27,7 @@ def run_language(
|
||||
exe,
|
||||
args,
|
||||
file_args,
|
||||
is_local=is_local,
|
||||
require_serial=True,
|
||||
color=False,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user