Skip to content
This repository was archived by the owner on Nov 11, 2019. It is now read-only.

Commit a4b3f4f

Browse files
committed
Merge pull request #292 from lgp171188/skip-pre-commit-hooks-docs
Specify how to skip specific pre-commit hooks
2 parents 04f5288 + 97d0add commit a4b3f4f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/contributors/dev_hacking.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,10 @@ Install the hooks by running::
206206
$ pre-commit install
207207

208208
The configuration of the hooks is done in ``.pre-commit-config.yaml`.
209-
To ignore the errors and proceed with the commit, use the
210-
``--no-verify`` option to the ``git commit`` command.
209+
To ignore all the errors and proceed with the commit, use the
210+
``--no-verify`` option to the ``git commit`` command. To ignore specifc
211+
hooks, you can specify a comma-separated list of hook ids (available in
212+
``.pre-commit-config.yaml``) in the environment variable ``SKIP``.
211213

212214

213215
Set up sample data (optional)

0 commit comments

Comments
 (0)