add precommit check added large files and git lfs rules (#2866)

This commit is contained in:
Thomas Brandého 2024-03-20 02:14:55 +01:00 committed by GitHub
parent 7debd3dbb9
commit 8a8fc76fc4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 13 additions and 0 deletions

5
.gitattributes vendored Normal file
View File

@ -0,0 +1,5 @@
*.png filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.jpeg filter=lfs diff=lfs merge=lfs -text
*.webp filter=lfs diff=lfs merge=lfs -text
*.gif filter=lfs diff=lfs merge=lfs -text

View File

@ -1,3 +1,5 @@
fail_fast: true
repos:
- repo: https://github.com/psf/black
rev: 22.10.0
@ -25,6 +27,12 @@ repos:
- id: darglint
exclude: '^reflex/reflex.py'
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
args: ['--maxkb=300', "--enforce-all"]
- repo: local
hooks:
- id: update-pyi-files

Binary file not shown.

Before

Width:  |  Height:  |  Size: 897 KiB

After

Width:  |  Height:  |  Size: 131 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 751 KiB

After

Width:  |  Height:  |  Size: 131 B