mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 00:54:42 +04:00
Use more-standard yaml format
This commit is contained in:
parent
47b7ca44ed
commit
6d1a464c4f
5 changed files with 23 additions and 44 deletions
|
|
@ -1,7 +1,6 @@
|
|||
|
||||
# Hooks are set up as follows
|
||||
# -
|
||||
# id: hook_id
|
||||
# - id: hook_id
|
||||
# name: 'Readable name'
|
||||
# entry: my_hook_executable
|
||||
#
|
||||
|
|
@ -14,15 +13,13 @@
|
|||
# # Optional, defaults to zero
|
||||
# expected_return_value: 0
|
||||
|
||||
-
|
||||
id: my_hook
|
||||
- id: my_hook
|
||||
name: My Simple Hook
|
||||
description: This is my simple hook that does blah
|
||||
entry: my-simple-hook.py
|
||||
language: python
|
||||
expected_return_value: 0
|
||||
-
|
||||
id: my_grep_based_hook
|
||||
- id: my_grep_based_hook
|
||||
name: My Bash Based Hook
|
||||
description: This is a hook that uses grep to validate some stuff
|
||||
entry: ./my_grep_based_hook.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue