mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-14 04:50:20 -06:00
6 lines
160 B
Python
6 lines
160 B
Python
|
|
def run_hook(env, hook, file_args):
|
|
return env.run(
|
|
' '.join([hook['entry']] + hook.get('args', []) + list(file_args)),
|
|
retcode=None,
|
|
) |