From bae13661e5b2e2a73544f20c659ca065e4403ef8 Mon Sep 17 00:00:00 2001 From: drewoldag <47493171+drewoldag@users.noreply.github.com> Date: Fri, 10 Mar 2023 16:01:12 -0800 Subject: [PATCH] Adding large file pre-commit hook. --- python-project-template/.pre-commit-config.yaml.jinja | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python-project-template/.pre-commit-config.yaml.jinja b/python-project-template/.pre-commit-config.yaml.jinja index a625b5a3..6f2613a4 100644 --- a/python-project-template/.pre-commit-config.yaml.jinja +++ b/python-project-template/.pre-commit-config.yaml.jinja @@ -33,6 +33,10 @@ repos: - id: no-commit-to-branch name: Don't commit to main or master branch description: Prevent the user from committing directly to the primary branch. + - id: check-added-large-files + name: Check for large files + description: Prevent the user from committing very large files. + args: ['--maxkb=500'] # verify that pyproject.toml is well formed - repo: https://github.com/abravalheri/validate-pyproject