Update README.md about file-contents-sorter

This commit is contained in:
Daniel Gallagher 2017-06-23 11:32:05 -07:00
parent 8b41c575db
commit 4af7451154
2 changed files with 13 additions and 14 deletions

View file

@ -51,6 +51,7 @@ Add this to your `.pre-commit-config.yaml`
with single quoted strings.
- `end-of-file-fixer` - Makes sure files end in a newline and only a newline.
- `fix-encoding-pragma` - Add `# -*- coding: utf-8 -*-` to the top of python files.
- `file-contents-sorter` - Sort the lines in specified files (defaults to alphabetical). You must provide list of target files as input to it.
- To remove the coding pragma pass `--remove` (useful in a python3-only codebase)
- `flake8` - Run flake8 on your python files.
- `forbid-new-submodules` - Prevent addition of new git submodules.