run-sub-hooks hook added

This commit is contained in:
Maciej Urbanski 2019-12-31 13:42:15 +01:00
parent 5df1a4bf6f
commit ec577f284a
No known key found for this signature in database
GPG key ID: D90480C016CCB761
5 changed files with 130 additions and 0 deletions

View file

@ -95,6 +95,10 @@ 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`
- `run-sub-hooks` - Runs subprocess with alternative pre-commit configuration.
- `--target` - target directory (doesn't have to be repository root
- `--config ...` - Control
- `requirements-txt-fixer` - Sorts entries in requirements.txt and removes incorrect entry for `pkg-resources==0.0.0`
- `sort-simple-yaml` - Sorts simple YAML files which consist only of top-level
keys, preserving comments and blocks.