Skip to content

Commit

Permalink
Merge pull request #15791 from eerovaher/prevent-large-files
Browse files Browse the repository at this point in the history
Make the `pre-commit.ci` job guard against large added files
  • Loading branch information
pllim committed Jan 8, 2024
2 parents e955c72 + c58e018 commit 9cd4f4f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ repos:
rev: v4.5.0
hooks:
- id: check-added-large-files
args: ["--enforce-all", "--maxkb=300"]
exclude: "^(\
cextern/wcslib/C/flexed/.*|\
CHANGES.rst|\
astropy/extern/jquery/data/js/jquery.dataTables.js|\
)$"
# Prevent giant files from being committed.
- id: check-case-conflict
# Check for files with names that would conflict on a case-insensitive
Expand Down

0 comments on commit 9cd4f4f

Please sign in to comment.