mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-05 19:46:54 +00:00
Merge 88ff7b12f2 into 2f8b625855
This commit is contained in:
commit
270652fff8
4 changed files with 64 additions and 0 deletions
|
|
@ -85,6 +85,9 @@ Add this to your `.pre-commit-config.yaml`
|
|||
- `--indent ...` - Control the indentation (either a number for a number of spaces or a string of whitespace). Defaults to 4 spaces.
|
||||
- `--no-sort-keys` - when autofixing, retain the original key ordering (instead of sorting the keys)
|
||||
- `--top-keys comma,separated,keys` - Keys to keep at the top of mappings.
|
||||
- `print-message` - Print a message and optionally fail when triggered.
|
||||
- `--message ...` - The message to print.
|
||||
- `--fail` - Whether to fail the pre-commit check.
|
||||
- `requirements-txt-fixer` - Sorts entries in requirements.txt
|
||||
- `sort-simple-yaml` - Sorts simple YAML files which consist only of top-level keys, preserving comments and blocks.
|
||||
- `trailing-whitespace` - Trims trailing whitespace.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue