mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-14 17:41:45 +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,28 +1,20 @@
|
||||||
|
|
||||||
-
|
- repo: git@github.com:pre-commit/pre-commit-hooks
|
||||||
repo: git@github.com:pre-commit/pre-commit-hooks
|
|
||||||
sha: 12794c1c19c001e3d05bcfe316b4f93b414035a7
|
sha: 12794c1c19c001e3d05bcfe316b4f93b414035a7
|
||||||
hooks:
|
hooks:
|
||||||
-
|
- id: pyflakes
|
||||||
id: pyflakes
|
|
||||||
files: '\.py$'
|
files: '\.py$'
|
||||||
-
|
- id: debug-statements
|
||||||
id: debug-statements
|
|
||||||
files: '\.py$'
|
files: '\.py$'
|
||||||
-
|
- id: trailing-whitespace
|
||||||
id: trailing-whitespace
|
|
||||||
files: '\.(py|sh)$'
|
files: '\.(py|sh)$'
|
||||||
-
|
- id: name-tests-test
|
||||||
id: name-tests-test
|
|
||||||
files: 'tests/.+\.py$'
|
files: 'tests/.+\.py$'
|
||||||
|
|
||||||
-
|
- repo: git@github.com:pre-commit/pre-commit
|
||||||
repo: git@github.com:pre-commit/pre-commit
|
sha: 47b7ca44ed1fcaa83464ed00cef72049ae22c33d
|
||||||
sha: c77d65d9cbbcf30e2be005f5ba8b63447deedc1e
|
|
||||||
hooks:
|
hooks:
|
||||||
-
|
- id: validate_manifest
|
||||||
id: validate_manifest
|
|
||||||
files: /manifest.yaml
|
files: /manifest.yaml
|
||||||
-
|
- id: validate_config
|
||||||
id: validate_config
|
|
||||||
files: /\.pre-commit-config.yaml
|
files: /\.pre-commit-config.yaml
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
# Hooks are set up as follows
|
# Hooks are set up as follows
|
||||||
# -
|
# - id: hook_id
|
||||||
# id: hook_id
|
|
||||||
# name: 'Readable name'
|
# name: 'Readable name'
|
||||||
# entry: my_hook_executable
|
# entry: my_hook_executable
|
||||||
#
|
#
|
||||||
|
|
@ -14,15 +13,13 @@
|
||||||
# # Optional, defaults to zero
|
# # Optional, defaults to zero
|
||||||
# expected_return_value: 0
|
# expected_return_value: 0
|
||||||
|
|
||||||
-
|
- id: my_hook
|
||||||
id: my_hook
|
|
||||||
name: My Simple Hook
|
name: My Simple Hook
|
||||||
description: This is my simple hook that does blah
|
description: This is my simple hook that does blah
|
||||||
entry: my-simple-hook.py
|
entry: my-simple-hook.py
|
||||||
language: python
|
language: python
|
||||||
expected_return_value: 0
|
expected_return_value: 0
|
||||||
-
|
- id: my_grep_based_hook
|
||||||
id: my_grep_based_hook
|
|
||||||
name: My Bash Based Hook
|
name: My Bash Based Hook
|
||||||
description: This is a hook that uses grep to validate some stuff
|
description: This is a hook that uses grep to validate some stuff
|
||||||
entry: ./my_grep_based_hook.sh
|
entry: ./my_grep_based_hook.sh
|
||||||
|
|
|
||||||
|
|
@ -1,14 +1,10 @@
|
||||||
|
|
||||||
-
|
- repo: git@github.com:pre-commit/pre-commit-hooks
|
||||||
repo: git@github.com:pre-commit/pre-commit-hooks
|
|
||||||
sha: cd74dc150c142c3be70b24eaf0b02cae9d235f37
|
sha: cd74dc150c142c3be70b24eaf0b02cae9d235f37
|
||||||
hooks:
|
hooks:
|
||||||
-
|
- id: pyflakes
|
||||||
id: pyflakes
|
|
||||||
files: '\.py$'
|
files: '\.py$'
|
||||||
-
|
- id: jslint
|
||||||
id: jslint
|
|
||||||
files: '\.js$'
|
files: '\.js$'
|
||||||
-
|
- id: trim_trailing_whitespace
|
||||||
id: trim_trailing_whitespace
|
|
||||||
files: '\.py$'
|
files: '\.py$'
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,10 @@
|
||||||
|
|
||||||
-
|
- id: validate_manifest
|
||||||
id: validate_manifest
|
|
||||||
name: Validate Pre-Commit Manifest
|
name: Validate Pre-Commit Manifest
|
||||||
description: This validator validates a pre-commit hooks manifest file
|
description: This validator validates a pre-commit hooks manifest file
|
||||||
entry: validate-manifest
|
entry: validate-manifest
|
||||||
language: python
|
language: python
|
||||||
-
|
- id: validate_config
|
||||||
id: validate_config
|
|
||||||
name: Validate Pre-Commit Config
|
name: Validate Pre-Commit Config
|
||||||
description: This validator validates a pre-commit hooks config file
|
description: This validator validates a pre-commit hooks config file
|
||||||
entry: validate-config
|
entry: validate-config
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,7 @@
|
||||||
|
|
||||||
-
|
- repo: git@github.com:pre-commit/pre-commit-hooks
|
||||||
repo: git@github.com:pre-commit/pre-commit-hooks
|
|
||||||
hooks:
|
hooks:
|
||||||
-
|
- id: pyflakes
|
||||||
id: pyflakes
|
- id: jslint
|
||||||
-
|
- id: trim_trailing_whitespace
|
||||||
id: jslint
|
files: '*.py'
|
||||||
-
|
|
||||||
id: trim_trailing_whitespace
|
|
||||||
files: '*.py'
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue