Skip to content

Commit 6f84637

Browse files
committed
Add comments about pre-commit hooks and how to disable them temporarily
1 parent a5c3b87 commit 6f84637

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# For the rare case that you'd like to commit with no pre-commit hooks, you can use `--no-verify` in the commit call.
2+
# ```
3+
# git commit --no-verify -m "MSG"
4+
# ```
15
repos:
26
- repo: https://github.com/astral-sh/ruff-pre-commit
37
rev: v0.3.2

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,5 @@ pre-commit install
5757
# To disable:
5858
# pre-commit uninstall
5959
```
60+
61+
If you absolutely need to skip the pre-commit hooks, you can use the [`--no-verify` flag when you commit](https://git-scm.com/docs/githooks#_pre_commit) (`git commit --no-verify -m "MSG"`).

0 commit comments

Comments
 (0)