mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-22 17:00:28 -06:00
Apply defaults to all of the configs. Much fewer .get()s
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
def run_hook(env, hook, file_args):
|
||||
return env.run(
|
||||
' '.join(['xargs', hook['entry']] + hook.get('args', [])),
|
||||
' '.join(['xargs', hook['entry']] + hook['args']),
|
||||
stdin='\n'.join(list(file_args) + ['']),
|
||||
retcode=None,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user