mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-10 13:24:18 +00:00
Update hooks.yaml for yaml hook.
This commit is contained in:
parent
cd4ce488aa
commit
f78ea7200d
1 changed files with 17 additions and 13 deletions
30
hooks.yaml
30
hooks.yaml
|
|
@ -1,26 +1,30 @@
|
||||||
|
- id: check-yaml
|
||||||
- id: pyflakes
|
name: Check Yaml
|
||||||
name: Pyflakes
|
description: This hook checks yaml files for parseable syntax.
|
||||||
description: This validator runs pyflakes.
|
entry: check-yaml
|
||||||
entry: pyflakes
|
|
||||||
language: python
|
language: python
|
||||||
- id: debug-statements
|
- id: debug-statements
|
||||||
name: Debug Statements (Python)
|
name: Debug Statements (Python)
|
||||||
description: This hook checks that debug statements (pdb, ipdb, pudb) are not imported on commit.
|
description: This hook checks that debug statements (pdb, ipdb, pudb) are not imported on commit.
|
||||||
entry: debug-statement-hook
|
entry: debug-statement-hook
|
||||||
language: python
|
language: python
|
||||||
- id: trailing-whitespace
|
- id: end-of-file-fixer
|
||||||
name: Trim Trailing Whitespace
|
name: Fix End of Files
|
||||||
description: This hook trims trailing whitespace.
|
description: Ensures that a file is either empty, or ends with one newline.
|
||||||
entry: trailing-whitespace-fixer
|
entry: end-of-file-fixer
|
||||||
language: python
|
language: python
|
||||||
- id: name-tests-test
|
- id: name-tests-test
|
||||||
name: Tests should end in _test.py
|
name: Tests should end in _test.py
|
||||||
description: This verifies that test files are named correctly
|
description: This verifies that test files are named correctly
|
||||||
entry: name-tests-test
|
entry: name-tests-test
|
||||||
language: python
|
language: python
|
||||||
- id: end-of-file-fixer
|
- id: pyflakes
|
||||||
name: Fix End of Files
|
name: Pyflakes
|
||||||
description: Ensures that a file is either empty, or ends with one newline.
|
description: This validator runs pyflakes.
|
||||||
entry: end-of-file-fixer
|
entry: pyflakes
|
||||||
|
language: python
|
||||||
|
- id: trailing-whitespace
|
||||||
|
name: Trim Trailing Whitespace
|
||||||
|
description: This hook trims trailing whitespace.
|
||||||
|
entry: trailing-whitespace-fixer
|
||||||
language: python
|
language: python
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue