Add docs on the SKIP pre-commit environment variable

Knowing about `SKIP` is useful

https://pre-commit.com/#temporarily-disabling-hook
This commit is contained in:
John Bampton
2022-06-27 13:49:15 +10:00
parent dc8da16b6b
commit 9841980bce
+5
View File
@@ -33,9 +33,14 @@ To run a single hook use `pre-commit run --all-files <hook_id>`
To update use `pre-commit autoupdate`
Sometimes you might need to skip one or more hooks which can be done with the `SKIP` environment variable.
`$ SKIP=yamllint git commit -m "foo"`
* [Quick start](https://pre-commit.com/#quick-start)
* [Usage](https://pre-commit.com/#usage)
* [pre-commit-autoupdate](https://pre-commit.com/#pre-commit-autoupdate)
* [Temporarily disabling hooks](https://pre-commit.com/#temporarily-disabling-hooks)
## Spell Checking