mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 03:56:54 +00:00
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:
parent
b7abd18ceb
commit
f7da3dff91
4 changed files with 91 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue