ben-denham / labtech

Easily run experiment permutations with multi-processing and caching
https://ben-denham.github.io/labtech/
GNU General Public License v3.0
7 stars 1 forks source link

Feature: Automatically add .gitignore into a storage directory folder #15

Closed nathanjmcdougall closed 4 months ago

nathanjmcdougall commented 5 months ago

I think a .gitignore file with * by default would a nice addition to a storage directory, if the storage directory does not already exist and is created by labtech.

ben-denham commented 4 months ago

Good idea, I've added this in abec60e, but I've made it more aggressive in that it will ensure the gitignore always exists, and replaces any existing gitignore. If a user wants to manage it themselves, they can set with_gitignore=False.