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.
This commit is contained in:
Dunedan 2025-05-22 20:43:52 +02:00
parent 1985fefcbd
commit efdc1fab0a
No known key found for this signature in database
GPG key ID: 885B16854284E0B2

View file

@ -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