add types_or

This commit is contained in:
Marco Gorelli 2020-11-02 15:35:42 +00:00
parent 3112e08088
commit 62f668fc3f
13 changed files with 45 additions and 10 deletions

View file

@ -1,3 +1,3 @@
#!/usr/bin/env bash
echo $@
echo "$@"
exit 1

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
echo 'Fail'
echo $@
echo "$@"
exit 1

View file

@ -1,2 +1,2 @@
#!/usr/bin/env bash
echo $@
echo "$@"

View file

@ -1,4 +1,4 @@
#!/usr/bin/env bash
echo $@
echo "$@"
echo 'Hello World'

View 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]

View file

@ -0,0 +1,3 @@
#!/usr/bin/env bash
echo "$@"
exit 1

View file

@ -1,3 +1,3 @@
#!/usr/bin/env bash
echo $@
echo "$@"
exit 1