mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-13 12:30:08 -06:00
14 lines
404 B
Python
14 lines
404 B
Python
|
|
def install_environment(repo_cmd_runner):
|
|
"""Installation for script type is a noop."""
|
|
pass
|
|
|
|
|
|
def run_hook(repo_cmd_runner, hook, file_args):
|
|
return repo_cmd_runner.run(
|
|
['xargs', '{{prefix}}{0}'.format(hook['entry'])] + hook['args'],
|
|
# TODO: this is duplicated in pre_commit/languages/helpers.py
|
|
stdin='\n'.join(list(file_args) + ['']),
|
|
retcode=None,
|
|
)
|