scipp / copier_template

Copier template for Scipp projects
BSD 3-Clause "New" or "Revised" License
2 stars 1 forks source link

Change pre-commit `check-added-large-files` size limit? #122

Closed SimonHeybrock closed 5 months ago

SimonHeybrock commented 6 months ago

See recent accidental merge of a 80 kByte binary file into esssans@main. The default is 500 kByte. Is this good, or do we want to consider lowering it?

jl-wynen commented 6 months ago

Do you know the max size of code files in our projects?

YooSunYoung commented 6 months ago

Do you know the max size of code files in our projects?

I just filtered all files with ('.py', '.md', '.txt', '.cpp', '.hpp', '.h', '.sh') extensions.

So... among these files in the repositories listed above, maximum code file size is around 73 KB...??

jl-wynen commented 6 months ago

maximum code file size is around 73 KB...??

So we can't really disallow adding a 80kB file.

Is the issue more about disallowing binary files? But then we need a way to circumvent the check for images...

SimonHeybrock commented 6 months ago

So maybe the conclusion is that we should leave it as it is?