mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 18:16:52 +00:00
parent
3ab8c71f56
commit
1f262dab15
1 changed files with 2 additions and 0 deletions
|
|
@ -29,6 +29,8 @@ Add this to your `.pre-commit-config.yaml`
|
|||
setup.cfg / tox.ini.
|
||||
- `check-added-large-files` - Prevent giant files from being committed.
|
||||
- Specify what is "too large" with `args: ['--maxkb=123']` (default=500kB).
|
||||
- If `git-lfs` is installed, lfs files will be skipped
|
||||
(requires `git-lfs>=2.2.1`)
|
||||
- `check-ast` - Simply check whether files parse as valid python.
|
||||
- `check-builtin-literals` - Require literal syntax when initializing empty or zero Python builtin types.
|
||||
- Allows calling constructors with positional arguments (e.g., `list('abc')`).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue