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

@@ -68,6 +68,6 @@ def install_environment(prefix, version, additional_dependencies):
)
def run_hook(prefix, hook, file_args):
with in_env(prefix, hook['language_version']):
def run_hook(hook, file_args):
with in_env(hook.prefix, hook.language_version):
return helpers.run_xargs(hook, helpers.to_cmd(hook), file_args)