Skip to content

Commit

Permalink
add precommit check added large files and git lfs rules (#2866)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lendemor committed Mar 20, 2024
1 parent 7debd3d commit 8a8fc76
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
@@ -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
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
@@ -1,3 +1,5 @@
fail_fast: true

repos:
- repo: https://github.com/psf/black
rev: 22.10.0
Expand Down Expand Up @@ -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
Expand Down
Binary file modified docs/images/dalle.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/reflex.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8a8fc76

Please sign in to comment.