mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 03:56:54 +00:00
Addding no-sort-keys to pretty_format_json, this allows to disable the sort on the keys
This commit is contained in:
parent
97b88d9610
commit
f769c208bc
2 changed files with 12 additions and 3 deletions
|
|
@ -50,6 +50,8 @@ Add this to your `.pre-commit-config.yaml`
|
|||
- Use `args: ['--django']` to match `test*.py` instead.
|
||||
- `pyflakes` - Run pyflakes on your python files.
|
||||
- `pretty-format-json` - Checks that all your JSON files are pretty
|
||||
- Use `args: ['--autofix']` to automatically fixing the encountered not-pretty-formatted files and
|
||||
`args: ['--no-sort-keys']` to disable the sort on the keys.
|
||||
- `requirements-txt-fixer` - Sorts entries in requirements.txt
|
||||
- `trailing-whitespace` - Trims trailing whitespace.
|
||||
- Markdown linebreak trailing spaces preserved for `.md` and`.markdown`;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue