From e8c7ea04aad8f95821e110616cd2859308a87b7c Mon Sep 17 00:00:00 2001 From: Nathan McDougall Date: Tue, 14 Oct 2025 09:34:08 +1300 Subject: [PATCH] Bump `pre-commit-hooks` version in sample config to avoid warning The previous hard-coded version (v3.2.0) used stage names which are deprecated in the current version of `pre-commit`, and so emits a warning when used: ``` [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. ``` Bumping to `v6.0.0` will help avoid this warning being emitted and encourage the user to use a more up-to-date version if they use this sample config. --- pre_commit/commands/sample_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pre_commit/commands/sample_config.py b/pre_commit/commands/sample_config.py index ce22f65e..e9db5ca1 100644 --- a/pre_commit/commands/sample_config.py +++ b/pre_commit/commands/sample_config.py @@ -4,7 +4,7 @@ SAMPLE_CONFIG = '''\ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v3.2.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer