mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Implement no-dependency system and script hook types. Closes #39.
This commit is contained in:
parent
02660f7c0a
commit
c418f2b94e
14 changed files with 86 additions and 52 deletions
|
|
@ -1,4 +1,4 @@
|
|||
- id: prints_cwd
|
||||
name: Prints Cwd
|
||||
entry: prints_cwd
|
||||
language: python
|
||||
entry: pwd
|
||||
language: system
|
||||
|
|
|
|||
4
testing/resources/script_hooks_repo/bin/hook.sh
Executable file
4
testing/resources/script_hooks_repo/bin/hook.sh
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
echo $@
|
||||
echo 'Hello World'
|
||||
4
testing/resources/script_hooks_repo/hooks.yaml
Normal file
4
testing/resources/script_hooks_repo/hooks.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
- id: bash_hook
|
||||
name: Bash hook
|
||||
entry: bin/hook.sh
|
||||
language: script
|
||||
Loading…
Add table
Add a link
Reference in a new issue