From 51961e0961072f90a82783301984dba9b60328b0 Mon Sep 17 00:00:00 2001 From: Peter Becich Date: Tue, 11 Mar 2025 21:33:25 -0700 Subject: [PATCH] note that sample config pinned version should not be updated in this repo Puts message directly into YAML file: "do not make PR to pre-commit/pre-commit to update this" in view of the closed PRs to update this value: https://github.com/pre-commit/pre-commit/pull/1964 https://github.com/pre-commit/pre-commit/pull/2616 https://github.com/pre-commit/pre-commit/pull/2892 https://github.com/pre-commit/pre-commit/pull/3344 https://github.com/pre-commit/pre-commit/pull/3406 https://github.com/pre-commit/pre-commit/pull/3423 --- pre_commit/commands/sample_config.py | 2 +- tests/commands/sample_config_test.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pre_commit/commands/sample_config.py b/pre_commit/commands/sample_config.py index ce22f65e..5299df95 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: v3.2.0 # do not make PR to pre-commit/pre-commit to update this hooks: - id: trailing-whitespace - id: end-of-file-fixer diff --git a/tests/commands/sample_config_test.py b/tests/commands/sample_config_test.py index cf56e98c..765744d6 100644 --- a/tests/commands/sample_config_test.py +++ b/tests/commands/sample_config_test.py @@ -12,7 +12,7 @@ def test_sample_config(capsys): # 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: v3.2.0 # do not make PR to pre-commit/pre-commit to update this hooks: - id: trailing-whitespace - id: end-of-file-fixer