mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
added node hooks setup and jshint
This commit is contained in:
parent
356e4ba13b
commit
7fbc935d1c
4 changed files with 51 additions and 6 deletions
6
pre_commit/languages/helpers.py
Normal file
6
pre_commit/languages/helpers.py
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
def run_hook(env, hook, file_args):
|
||||
return env.run(
|
||||
' '.join([hook['entry']] + hook.get('args', []) + list(file_args)),
|
||||
retcode=None,
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue