From efdc1fab0a165f74ece9d972b85c88c5352488de Mon Sep 17 00:00:00 2001 From: Dunedan Date: Thu, 22 May 2025 20:43:52 +0200 Subject: [PATCH] Add a pre-commit hook to check for large files This checks there are no large files being committed, which aren't stored in git-lfs. --- .pre-commit-config.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 535514ae79..4220133e4b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,6 +3,10 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v5.0.0 hooks: + - id: check-added-large-files + args: + - --maxkb=1024 + - --enforce-all - id: check-case-conflict - id: check-executables-have-shebangs - id: check-json