Add check-docstring-first hook.

This commit is contained in:
Anthony Sottile 2015-01-04 13:06:21 -08:00
parent 7a5a46a1dc
commit 53f1dc0163
5 changed files with 142 additions and 4 deletions

View file

@ -7,11 +7,17 @@
args: [-i]
- id: check-added-large-files
name: Check for added large files
language: python
entry: check-added-large-files
description: Prevent giant files from being committed
entry: check-added-large-files
language: python
# Match all files
files: ''
- id: check-docstring-first
name: Check docstring is first
description: Checks a common error of defining a docstring after code.
entry: check-docstring-first
language: python
files: \.py$
- id: check-json
name: Check JSON
description: This hook checks json files for parseable syntax.