From 9aa6d249739bb38676192b07789ad2485bcad617 Mon Sep 17 00:00:00 2001 From: James Frost Date: Tue, 21 Nov 2023 11:12:41 +0000 Subject: [PATCH 1/2] Increase file size limit to 10 MiB --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index fa552c940..a91873f96 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -28,6 +28,7 @@ repos: rev: c4a0b883114b00d8d76b479c820ce7950211c99b # frozen: v4.5.0 hooks: - id: check-added-large-files + args: ['--maxkb=10240'] - id: check-case-conflict - id: check-merge-conflict - id: check-json From fea963d6aef073d599fde0a0289b0de0a43acea7 Mon Sep 17 00:00:00 2001 From: James Frost Date: Tue, 21 Nov 2023 11:23:06 +0000 Subject: [PATCH 2/2] Prevent PP files being mangled by pre-commit --- .pre-commit-config.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a91873f96..5e963d04d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,4 +35,6 @@ repos: - id: check-toml - id: check-yaml - id: end-of-file-fixer + # Prevent PP files being inappropriately "fixed". + exclude: ^.+\.pp$ - id: trailing-whitespace