mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 03:56:54 +00:00
Add sort-simple-yaml hook (originally private hook from yelp_pre_commit_hooks)
This commit is contained in:
parent
78818b90cd
commit
b6eff3d39e
7 changed files with 258 additions and 0 deletions
|
|
@ -67,6 +67,7 @@ Add this to your `.pre-commit-config.yaml`
|
|||
- `--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.
|
||||
- `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.
|
||||
- Markdown linebreak trailing spaces preserved for `.md` and`.markdown`;
|
||||
use `args: ['--markdown-linebreak-ext=txt,text']` to add other extensions,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue