From 009e0ae58fdc896dffd26ccad1d9d14bf1d30fd4 Mon Sep 17 00:00:00 2001 From: kang Date: Tue, 31 Dec 2024 14:09:21 +0800 Subject: [PATCH] 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. --- sections/cli.md | 2 +- sections/install.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sections/cli.md b/sections/cli.md index a644a0ae..fd52d1e2 100644 --- a/sections/cli.md +++ b/sections/cli.md @@ -29,7 +29,7 @@ Here are some sample invocations using this `.pre-commit-config.yaml`: ```yaml repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.1.0 + rev: v5.0.0 hooks: - id: trailing-whitespace - repo: https://github.com/asottile/pyupgrade diff --git a/sections/install.md b/sections/install.md index 3d6d4d85..8782979b 100644 --- a/sections/install.md +++ b/sections/install.md @@ -46,7 +46,7 @@ pre-commit --version ```yaml repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.3.0 + rev: v5.0.0 hooks: - id: check-yaml - id: end-of-file-fixer