mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Code cleanup and tests
This commit is contained in:
parent
5f392f0ba5
commit
9b92f96ed0
7 changed files with 92 additions and 21 deletions
3
testing/resources/docker_hooks_repo/Dockerfile
Normal file
3
testing/resources/docker_hooks_repo/Dockerfile
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
FROM cogniteev/echo
|
||||
|
||||
CMD ["echo", "This is overwritten by the hooks.yaml 'entry'"]
|
||||
11
testing/resources/docker_hooks_repo/hooks.yaml
Normal file
11
testing/resources/docker_hooks_repo/hooks.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
- id: docker-hook
|
||||
name: Docker test hook
|
||||
entry: echo
|
||||
language: docker
|
||||
files: \.txt$
|
||||
|
||||
- id: docker-hook-failing
|
||||
name: Docker test hook with nonzero exit code
|
||||
entry: bork
|
||||
language: docker
|
||||
files: \.txt$
|
||||
Loading…
Add table
Add a link
Reference in a new issue