mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 10:16:52 +00:00
Document --indent for pretty-format-json
This commit is contained in:
parent
775a7906cd
commit
b4a9600fa5
1 changed files with 3 additions and 2 deletions
|
|
@ -52,8 +52,9 @@ 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.
|
||||
- `--autofix` - automatically format json files
|
||||
- `--no-sort-keys` - when autofixing, retain the original key ordering (instead of sorting the keys)
|
||||
- `--indent ...` - Control the indentation (either a number for a number of spaces or a string of whitespace).
|
||||
- `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