Skip to content

Commit

Permalink
Add a pre-commit hook to reject large files (#2699)
Browse files Browse the repository at this point in the history
Prevents large files as in #2644. 

Contributes to #2420, #2674
    
Signed-off-by: Gera Shegalov <gera@apache.org>
  • Loading branch information
gerashegalov authored Jun 11, 2021
1 parent 4e74a67 commit 80383bb
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 @@ -21,4 +21,10 @@ repos:
language: script
pass_filenames: true
verbose: true
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.0.1
hooks:
- id: check-added-large-files
name: Check for file over 1.5MiB
args: ['--maxkb=1500', '--enforce-all']

0 comments on commit 80383bb

Please sign in to comment.