mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-13 20:40:08 -06:00
Apply defaults to all of the configs. Much fewer .get()s
This commit is contained in:
@@ -6,7 +6,7 @@ def install_environment(repo_cmd_runner):
|
||||
|
||||
def run_hook(repo_cmd_runner, hook, file_args):
|
||||
return repo_cmd_runner.run(
|
||||
['xargs', hook['entry']] + hook.get('args', []),
|
||||
['xargs', hook['entry']] + hook['args'],
|
||||
# TODO: this is duplicated in pre_commit/languages/helpers.py
|
||||
stdin='\n'.join(list(file_args) + ['']),
|
||||
retcode=None,
|
||||
|
||||
Reference in New Issue
Block a user