gammasim / simtools

Tools and applications for the Simulation System of the CTA Observatory.
https://gammasim.github.io/simtools
BSD 3-Clause "New" or "Revised" License
10 stars 1 forks source link

Add pre-commit hook to avoid large files updates #939

Closed GernotMaier closed 4 months ago

GernotMaier commented 4 months ago

The reason why the simtools repo is so large is that we have uploaded at some point accidentally some very large files.

To prevent this, introduced a pre-commit to prevent this:

Set the max value to 500 kB. We have a couple (4-5 files) above this value; in this case I am expected that we consciously bypass the pre-commit hook.

VictorBarbosaMartins commented 4 months ago

Why introducing a pre-commit just to by-pass it? Is there a way to automatically by-pass the files that are already in the project such that we don't need to do that by hand in every commit?

GernotMaier commented 4 months ago

The other way around: we introduce a pre-commit to avoid committing large files by accident.

If we actually want to do it, we have to consciously bypass the pre-commit stage.

VictorBarbosaMartins commented 4 months ago

The other way around: we introduce a pre-commit to avoid committing large files by accident.

If we actually want to do it, we have to consciously bypass the pre-commit stage.

Ok! I thought we would need to by pass every time because the files are already there. All good here then.