mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-20 01:24:42 +04:00
Introduce .pre-commit-hooks.yaml as a replacement for hooks.yaml
This commit is contained in:
parent
b90a598fac
commit
b9e5184ebd
32 changed files with 107 additions and 21 deletions
16
testing/resources/pcre_hooks_repo/.pre-commit-hooks.yaml
Normal file
16
testing/resources/pcre_hooks_repo/.pre-commit-hooks.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
- id: regex-with-quotes
|
||||
name: Regex with quotes
|
||||
entry: "foo'bar"
|
||||
language: pcre
|
||||
files: ''
|
||||
- id: other-regex
|
||||
name: Other regex
|
||||
entry: ^\[INFO\]
|
||||
language: pcre
|
||||
files: ''
|
||||
- id: regex-with-grep-args
|
||||
name: Regex with grep extra arguments
|
||||
entry: foo.+bar
|
||||
language: pcre
|
||||
files: ''
|
||||
args: [-i]
|
||||
Loading…
Add table
Add a link
Reference in a new issue