first pass at #50 (yapf hook)

This commit is contained in:
jab 2015-03-30 14:46:20 -04:00
parent 15b678e9c6
commit a4dbda57ca
4 changed files with 28 additions and 0 deletions

View file

@ -24,6 +24,8 @@ Add this to your `.pre-commit-config.yaml`
### Hooks available
- `autopep8-wrapper` - Runs autopep8 over python source. (You'll want `args: ['-i]` when using this hook, see `.pre-commit-config.yaml` for an example.)
- `yapf-wrapper` - Runs yapf over python source. (You'll want `args: ['-i]` when using this hook, see `.pre-commit-config.yaml` for an example.)
**NOTE: yapf is currently alpha and has not yet been released, so enabling this hook currently requires you to install yapf manually from source.**
- `check-added-large-files` - Prevent giant files from being committed.
- `check-case-conflict` - Check for files that would conflict in case-insensitive filesystems.
- `check-docstring-first` - Checks a common error of defining a docstring after code.