mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
Remove unnecessary object level at top of manifest
This commit is contained in:
parent
af7e23aae5
commit
e5f4c61608
4 changed files with 54 additions and 66 deletions
|
|
@ -1,31 +1,29 @@
|
|||
|
||||
# Hooks are set up as follows
|
||||
# hooks:
|
||||
# -
|
||||
# id: hook_id
|
||||
# name: 'Readable name'
|
||||
# entry: my_hook_executable
|
||||
# -
|
||||
# id: hook_id
|
||||
# name: 'Readable name'
|
||||
# entry: my_hook_executable
|
||||
#
|
||||
# # Optional
|
||||
# description: 'Longer description of the hook'
|
||||
# # Optional
|
||||
# description: 'Longer description of the hook'
|
||||
#
|
||||
# # Optional, for now 'python[optional version]', 'ruby #.#.#', 'node'
|
||||
# language: 'python'
|
||||
# # Optional, for now 'python[optional version]', 'ruby #.#.#', 'node'
|
||||
# language: 'python'
|
||||
#
|
||||
# # Optional, defaults to zero
|
||||
# expected_return_value: 0
|
||||
# # Optional, defaults to zero
|
||||
# expected_return_value: 0
|
||||
|
||||
hooks:
|
||||
-
|
||||
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
|
||||
name: My Bash Based Hook
|
||||
description: This is a hook that uses grep to validate some stuff
|
||||
entry: ./my_grep_based_hook.sh
|
||||
expected_return_value: 1
|
||||
-
|
||||
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
|
||||
name: My Bash Based Hook
|
||||
description: This is a hook that uses grep to validate some stuff
|
||||
entry: ./my_grep_based_hook.sh
|
||||
expected_return_value: 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue