Adds remove-tabs hook

Inpired by initial work done by Lucas-C:
https://github.com/Lucas-C/pre-commit-hooks
This commit is contained in:
Sorin Sbarnea 2019-08-03 11:09:47 +01:00
parent b7abd18ceb
commit f7da3dff91
4 changed files with 91 additions and 0 deletions

View file

@ -93,6 +93,7 @@ Add this to your `.pre-commit-config.yaml`
- `--no-sort-keys` - when autofixing, retain the original key ordering (instead of sorting the keys)
- `--top-keys comma,separated,keys` - Keys to keep at the top of mappings.
- `requirements-txt-fixer` - Sorts entries in requirements.txt and removes incorrect entry for `pkg-resources==0.0.0`
- `remove-tabs` - Replace tabs by whitespaces before committing
- `sort-simple-yaml` - Sorts simple YAML files which consist only of top-level keys, preserving comments and blocks.
- `trailing-whitespace` - Trims trailing whitespace.
- To preserve Markdown [hard linebreaks](https://github.github.com/gfm/#hard-line-break)