From 448eaaf1892cec10876d0c7ceaa3f36e826d77ca Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 10 Aug 2025 04:55:29 +0000 Subject: [PATCH 1/2] =?UTF-8?q?feat(deps)!:=20Update=20dependency=20pre-co?= =?UTF-8?q?mmit/pre-commit-hooks=20(=20v5.0.0=20=E2=86=92=20v6.0.0=20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 2 +- template/.pre-commit-config.yaml.jinja | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7a90940..ae0fe20 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -40,7 +40,7 @@ repos: files: \.rej$ # renovate: datasource=github-tags depName=pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks - rev: "v5.0.0" + rev: "v6.0.0" hooks: - id: check-added-large-files args: [--maxkb=500000] diff --git a/template/.pre-commit-config.yaml.jinja b/template/.pre-commit-config.yaml.jinja index 5504054..d6954f4 100644 --- a/template/.pre-commit-config.yaml.jinja +++ b/template/.pre-commit-config.yaml.jinja @@ -42,7 +42,7 @@ repos: files: \.rej$ # renovate: datasource=github-tags depName=pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks - rev: "v5.0.0" + rev: "v6.0.0" hooks: - id: check-added-large-files args: [--maxkb=500000] From 4368ee20c7e5f96f2c80fc8c5d6c07c014befc75 Mon Sep 17 00:00:00 2001 From: ahgraber Date: Sun, 10 Aug 2025 15:06:55 -0400 Subject: [PATCH 2/2] fix(pre-commit): allow multiple documents in YAML checks - Updated the check-yaml hook to accept multiple documents by adding the argument `--allow-multiple-documents`. --- .pre-commit-config.yaml | 1 + template/.pre-commit-config.yaml.jinja | 1 + 2 files changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ae0fe20..13b8d52 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -59,6 +59,7 @@ repos: stages: [pre-commit] - id: check-yaml stages: [pre-commit] + args: [--allow-multiple-documents] - id: end-of-file-fixer stages: [pre-commit] - id: mixed-line-ending diff --git a/template/.pre-commit-config.yaml.jinja b/template/.pre-commit-config.yaml.jinja index d6954f4..1e20085 100644 --- a/template/.pre-commit-config.yaml.jinja +++ b/template/.pre-commit-config.yaml.jinja @@ -61,6 +61,7 @@ repos: stages: [pre-commit] - id: check-yaml stages: [pre-commit] + args: [--allow-multiple-documents] - id: end-of-file-fixer stages: [pre-commit] - id: mixed-line-ending