mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 11:36:54 +00:00
Forbid files with a UTF-8 BOM
This commit is contained in:
parent
97b88d9610
commit
fe9c404019
5 changed files with 49 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ Add this to your `.pre-commit-config.yaml`
|
|||
- `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-byte-order-marker` - Forbid files which have a UTF-8 byte-order marker
|
||||
- `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