mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-04 19:26:52 +00:00
Add a hook for checking parseable json.
This commit is contained in:
parent
7ec4853521
commit
243fe50bc1
7 changed files with 57 additions and 4 deletions
10
hooks.yaml
10
hooks.yaml
|
|
@ -1,3 +1,9 @@
|
|||
- id: check-json
|
||||
name: Check JSON
|
||||
description: This hook checks json files for parseable syntax.
|
||||
entry: check-json
|
||||
language: python
|
||||
files: \.json$
|
||||
- id: check-yaml
|
||||
name: Check Yaml
|
||||
description: This hook checks yaml files for parseable syntax.
|
||||
|
|
@ -15,7 +21,7 @@
|
|||
description: Ensures that a file is either empty, or ends with one newline.
|
||||
entry: end-of-file-fixer
|
||||
language: python
|
||||
files: \.(js|rb|md|py|scss|sh|tmpl|txt|yaml|yml)$
|
||||
files: \.(js|json|rb|md|py|scss|sh|tmpl|txt|yaml|yml)$
|
||||
- id: flake8
|
||||
name: Flake8
|
||||
description: This hook runs flake8.
|
||||
|
|
@ -39,4 +45,4 @@
|
|||
description: This hook trims trailing whitespace.
|
||||
entry: trailing-whitespace-fixer
|
||||
language: python
|
||||
files: \.(js|rb|md|py|scss|sh|tmpl|txt|yaml|yml)$
|
||||
files: \.(js|json|rb|md|py|scss|sh|tmpl|txt|yaml|yml)$
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue