Skip to content

Commit

Permalink
Add comments about pre-commit hooks and how to disable them temporarily
Browse files Browse the repository at this point in the history
  • Loading branch information
schloerke committed Mar 12, 2024
1 parent a5c3b87 commit 6f84637
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# For the rare case that you'd like to commit with no pre-commit hooks, you can use `--no-verify` in the commit call.
# ```
# git commit --no-verify -m "MSG"
# ```
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.3.2
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,3 +57,5 @@ pre-commit install
# To disable:
# pre-commit uninstall
```

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 comments on commit 6f84637

Please sign in to comment.