mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-04 19:26:52 +00:00
Merge pull request #109 from mattclegg/no-sort-keys
Adding no-sort-keys to pretty_format_json
This commit is contained in:
commit
ea867c2e68
6 changed files with 41 additions and 9 deletions
|
|
@ -51,6 +51,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