Merging upstream version 2.9.3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
f602091049
commit
9326612968
32 changed files with 252 additions and 75 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
|
||||
|
|
|
@ -99,6 +99,9 @@ def main() -> int:
|
|||
shebang = '/usr/bin/env python3'
|
||||
zipapp.create_archive(tmpdir, filename, interpreter=shebang)
|
||||
|
||||
with open(f'{filename}.sha256sum', 'w') as f:
|
||||
subprocess.check_call(('sha256sum', filename), stdout=f)
|
||||
|
||||
return 0
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue