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

@ -23,7 +23,8 @@ Add this to your `.pre-commit-config.yaml`
### Hooks available
- `autopep8-wrapper` - Runs autopep8 over python source.
' `check-added-large-files` - Prevent giant files from being committed.
- `check-added-large-files` - Prevent giant files from being committed.
- `check-docstring-first` - Checks a common error of defining a docstring after code.
- `check-json` - Attempts to load all json files to verify syntax.
- `check-yaml` - Attempts to load all yaml files to verify syntax.
- `debug-statements` - Check for pdb / ipdb / pudb statements in code.