mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-04 19:26:52 +00:00
Add a hook to verify python ast.
This commit is contained in:
parent
003e43251a
commit
8a8aaf5a60
5 changed files with 59 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue