Use Hook api in languages

This commit is contained in:
Anthony Sottile 2018-12-31 13:16:48 -08:00
parent 5f9a667470
commit b59d7197ff
18 changed files with 41 additions and 38 deletions

View file

@ -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)