mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-18 08:34:41 +04:00
Make hooks specify files. Optionally allow config to override manifest.
This commit is contained in:
parent
0ec9020346
commit
96174deac6
25 changed files with 81 additions and 50 deletions
|
|
@ -15,12 +15,13 @@
|
|||
- id: my_hook
|
||||
name: My Simple Hook
|
||||
description: This is my simple hook that does blah
|
||||
entry: my-simple-hook.py
|
||||
entry: my-simple-hook
|
||||
language: python
|
||||
expected_return_value: 0
|
||||
files: \.py$
|
||||
- id: my_grep_based_hook
|
||||
name: My Bash Based Hook
|
||||
description: This is a hook that uses grep to validate some stuff
|
||||
entry: ./my_grep_based_hook.sh
|
||||
language: script
|
||||
files: \.(py|sh)$
|
||||
expected_return_value: 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue