Document --indent for pretty-format-json

This commit is contained in:
Anthony Sottile 2016-08-22 14:23:23 -07:00 committed by GitHub
parent 775a7906cd
commit b4a9600fa5

View file

@ -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`;