mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-01-12 20:10:21 -06:00
28 lines
743 B
YAML
28 lines
743 B
YAML
# Hooks are set up as follows
|
|
# - id: hook_id
|
|
# name: 'Readable name'
|
|
# entry: my_hook_executable
|
|
#
|
|
# # Optional
|
|
# description: 'Longer description of the hook'
|
|
#
|
|
# # Optional, for now 'python[optional version]', 'ruby #.#.#', 'node'
|
|
# language: 'python'
|
|
#
|
|
# # Optional, defaults to zero
|
|
# expected_return_value: 0
|
|
|
|
- id: my_hook
|
|
name: My Simple Hook
|
|
description: This is my simple hook that does blah
|
|
entry: my-simple-hook
|
|
language: python
|
|
files: \.py$
|
|
- 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
|
|
language: script
|
|
files: \.(py|sh)$
|
|
expected_return_value: 1
|