Implement a simplified xargs in python

This commit is contained in:
Anthony Sottile
2016-03-21 19:30:47 -07:00
parent a5b56bd9e3
commit b7d395410b
13 changed files with 130 additions and 62 deletions

View File

@@ -1,6 +1,6 @@
from __future__ import unicode_literals
from pre_commit.languages import helpers
from pre_commit.xargs import xargs
ENVIRONMENT_DIR = None
@@ -16,7 +16,7 @@ def install_environment(
def run_hook(repo_cmd_runner, hook, file_args):
return helpers.run_hook(
return xargs(
(repo_cmd_runner.prefix_dir + hook['entry'],) + tuple(hook['args']),
file_args,
)