mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-29 03:29:25 -05:00
Move PrefixedCommandRunner -> Prefix
This commit is contained in:
@@ -27,7 +27,7 @@ def _process_filename_by_line(pattern, filename):
|
||||
return retv
|
||||
|
||||
|
||||
def run_hook(repo_cmd_runner, hook, file_args):
|
||||
def run_hook(prefix, hook, file_args):
|
||||
exe = (sys.executable, '-m', __name__)
|
||||
exe += tuple(hook['args']) + (hook['entry'],)
|
||||
return xargs(exe, file_args)
|
||||
|
||||
Reference in New Issue
Block a user