Skip to content

Commit

Permalink
fix large files checking (#2564)
Browse files Browse the repository at this point in the history
It seems to me that the previous implementation does not really work in
the CI... This PR will prevent any new large files (>1MB).

---------

Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
  • Loading branch information
njzjz committed Jun 6, 2023
1 parent 03da08d commit a3c8980
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ repos:
- id: check-yaml
#- id: check-json
- id: check-added-large-files
args: ['--maxkb=1024', '--enforce-all']
# TODO: remove the following after resolved
exclude: |
(?x)^(
source/tests/infer/dipolecharge_e.pbtxt|
source/tests/nvnmd/map.npy|
source/tests/infer/deeppolar_new.pbtxt
)$
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
Expand Down

0 comments on commit a3c8980

Please sign in to comment.