Add a hook for checking parseable json.

This commit is contained in:
Anthony Sottile 2014-08-19 16:03:48 -07:00
parent 7ec4853521
commit 243fe50bc1
7 changed files with 57 additions and 4 deletions

View file

@ -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)$