mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Move stuff into commands and write tests.
This commit is contained in:
parent
47c68820d0
commit
5eda121260
8 changed files with 243 additions and 119 deletions
6
testing/resources/failing_hook_repo/bin/hook.sh
Executable file
6
testing/resources/failing_hook_repo/bin/hook.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
|
||||
echo 'Fail'
|
||||
echo $@
|
||||
exit 1
|
||||
4
testing/resources/failing_hook_repo/hooks.yaml
Normal file
4
testing/resources/failing_hook_repo/hooks.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
- id: failing_hook
|
||||
name: Failing hook
|
||||
entry: bin/hook.sh
|
||||
language: script
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
import os
|
||||
|
||||
def func():
|
||||
print os.getcwd()
|
||||
return 0
|
||||
Loading…
Add table
Add a link
Reference in a new issue