Skip to content

Commit 27a17c6

Browse files
authored
Enforce size limit on the repository (#3764)
1 parent 8ed5557 commit 27a17c6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.pre-commit-config.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,18 @@ repos:
88
- id: check-toml
99
- id: end-of-file-fixer
1010
- id: trailing-whitespace
11+
- id: check-added-large-files
12+
args:
13+
- --maxkb=1024 # 1MB
14+
- --enforce-all # Allow to run in the whole source code, instead of only the changed files.
15+
# TODO(Marcelo): We should replace the kiwi.png file with a smaller one.
16+
exclude: |
17+
(?x)^(
18+
tests/models/cassettes/.*|
19+
tests/cassettes/.*|
20+
uv.lock|
21+
tests/assets/kiwi.png
22+
)$
1123
1224
- repo: https://github.com/sirosen/texthooks
1325
rev: 0.6.8

0 commit comments

Comments
 (0)