mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
add types_or
This commit is contained in:
parent
3112e08088
commit
62f668fc3f
13 changed files with 45 additions and 10 deletions
|
|
@ -1,3 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
echo $@
|
||||
echo "$@"
|
||||
exit 1
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
echo 'Fail'
|
||||
echo $@
|
||||
echo "$@"
|
||||
exit 1
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
#!/usr/bin/env bash
|
||||
echo $@
|
||||
echo "$@"
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
echo $@
|
||||
echo "$@"
|
||||
echo 'Hello World'
|
||||
|
|
|
|||
6
testing/resources/types_or_repo/.pre-commit-hooks.yaml
Normal file
6
testing/resources/types_or_repo/.pre-commit-hooks.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
- id: python-cython-files
|
||||
name: Python and Cython files
|
||||
entry: bin/hook.sh
|
||||
language: script
|
||||
types: [file]
|
||||
types_or: [python, cython]
|
||||
3
testing/resources/types_or_repo/bin/hook.sh
Executable file
3
testing/resources/types_or_repo/bin/hook.sh
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
echo "$@"
|
||||
exit 1
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
#!/usr/bin/env bash
|
||||
echo $@
|
||||
echo "$@"
|
||||
exit 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue