Add a hook to verify python ast.

This commit is contained in:
Anthony Sottile 2015-08-04 13:45:41 -07:00
parent 003e43251a
commit 8a8aaf5a60
5 changed files with 59 additions and 0 deletions

View file

@ -28,6 +28,7 @@ Add this to your `.pre-commit-config.yaml`
see `.pre-commit-config.yaml` in this repository for an example.
- `check-added-large-files` - Prevent giant files from being committed.
- Specify what is "too large" with `args: ['--maxkb=123']` (default=500kB).
- `check-ast` - Simply check whether files parse as valid python.
- `check-case-conflict` - Check for files with names that would conflict on a
case-insensitive filesystem like MacOS HFS+ or Windows FAT.
- `check-docstring-first` - Checks for a common error of placing code before