From 9841980bceec68a960146c2334b1047e875ee071 Mon Sep 17 00:00:00 2001 From: John Bampton Date: Mon, 27 Jun 2022 13:49:15 +1000 Subject: [PATCH] Add docs on the `SKIP` pre-commit environment variable Knowing about `SKIP` is useful https://pre-commit.com/#temporarily-disabling-hook --- CONTRIBUTING.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 516be1e3c..deb452ec1 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -33,9 +33,14 @@ To run a single hook use `pre-commit run --all-files ` 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