https://github.com/guykisel/pre-commit-reject-large-files
https://github.com/guykisel/pre-commit-reject-large-files
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/guykisel/pre-commit-reject-large-files
- Owner: guykisel
- License: mit
- Created: 2014-12-31T00:19:12.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2024-10-14T17:35:00.000Z (over 1 year ago)
- Last Synced: 2025-07-01T06:46:18.716Z (12 months ago)
- Language: Python
- Size: 8.79 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
pre-commit-reject-large-files
=============================
This is a [pre-commit](https://github.com/pre-commit) hook that will reject
large files.
* [pre-commit](https://github.com/pre-commit)
Inspired by [Albert-Jan Roskam's git hook](http://code.activestate.com/recipes/578883-git-pre-commit-hook-to-reject-large-files-using-py/).
Add this to your ``.pre-commit-config.yaml`` file
- repo: git://github.com/guykisel/pre-commit-reject-large-files
sha: da21f6dac1aa20aa53598b145c5c0013cdd40d65
hooks:
- id: reject-large-files
Available flags:
* ``--max-filesize``: Maximum allowable filesize in bytes. Defaults to 5 MB (5242880 bytes).