Skip to content

Conversation

@drewoldag
Copy link
Collaborator

More docs can be found here about this hook: https://github.com/pre-commit/pre-commit-hooks#check-added-large-files

Seems like it plays nicely with git-lfs by ignoring anything tracked by git-lfs.

Currently set to 500kb limit, and of course the user has control over this. They can either change the pre-commit argument from -maxkb=500 to whatever they want, or ignore the warning with git commit -m '...' --no-verify.

Copy link
Collaborator

@cchris28 cchris28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

500 Kbytes probably too restrictive. Maybe 2 Mbytes? That said this is probably ok for a default value.

@drewoldag
Copy link
Collaborator Author

drewoldag commented Mar 11, 2023

I'm ok leaving the size limit as is for now and we can change it if we get feedback that it's causing problems.

@drewoldag drewoldag merged commit ea06f00 into main Mar 11, 2023
@drewoldag drewoldag deleted the awo-large-file-precommit-hook branch March 11, 2023 20:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants