Skip to content

Commit 009e0ae

Browse files
committed
docs: Update pre-commit-hooks version to v5.0.0
When using pre-commit-hooks, I copied the version from the website.. But when I actually use it, it reminds me: ``` [WARNING] repo `https://github.com/pre-commit/pre-commit-hooks` uses deprecated stage names (commit, push) which will be removed in a future version. Hint: often `pre-commit autoupdate --repo https://github.com/pre-commit/pre-commit-hooks` will fix this. if it does not -- consider reporting an issue to that repo. ``` So, the version should be upgraded to the latest one.
1 parent c263ac9 commit 009e0ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sections/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Here are some sample invocations using this `.pre-commit-config.yaml`:
2929
```yaml
3030
repos:
3131
- repo: https://github.com/pre-commit/pre-commit-hooks
32-
rev: v2.1.0
32+
rev: v5.0.0
3333
hooks:
3434
- id: trailing-whitespace
3535
- repo: https://github.com/asottile/pyupgrade

sections/install.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ pre-commit --version
4646
```yaml
4747
repos:
4848
- repo: https://github.com/pre-commit/pre-commit-hooks
49-
rev: v2.3.0
49+
rev: v5.0.0
5050
hooks:
5151
- id: check-yaml
5252
- id: end-of-file-fixer

0 commit comments

Comments
 (0)