cookiecutter-science-project icon indicating copy to clipboard operation
cookiecutter-science-project copied to clipboard

Saving 'locked' environment file via git commit hook?

Open jbusecke opened this issue 3 years ago • 0 comments

I am looking for a way to make sure that each commit of a repository has the most recent 'locked' environment file attached to it. I was thinking that it might be possible to have a git hook, which spits out the current conda configuration as a file each time the repo is commited (or maybe just before it is released?)

How would we check if the environment the user has activated is actually the correct one? I guess checking the name against the name in the template would be a good start?

jbusecke avatar Jan 20 '21 20:01 jbusecke