mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-28 02:59:47 -05:00
Use Hook api in languages
This commit is contained in:
@@ -50,6 +50,6 @@ def install_environment(
|
||||
)
|
||||
|
||||
|
||||
def run_hook(prefix, hook, file_args): # pragma: windows no cover
|
||||
with in_env(prefix):
|
||||
def run_hook(hook, file_args): # pragma: windows no cover
|
||||
with in_env(hook.prefix):
|
||||
return helpers.run_xargs(hook, helpers.to_cmd(hook), file_args)
|
||||
|
||||
Reference in New Issue
Block a user