-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update .gitignore #295
Update .gitignore #295
Conversation
Woah how didn't I notice this? |
Curious how it hasn't been an issue. |
This is a dumb nit, but couldn't we just do
|
I think it was added quite recently and git seems fine with changing ignored files, but won't register new ones. |
My only problem with this really is that if the project structure ever changes we'd have to update that line, right? |
That's what I meant by making it more specific. This wouldn't work if someone had
Yep |
|
I'll merge it, but I'm not sure this is a future-proof change to the gitignore. I think telling it to ignore specifically root level env folders would be. |
I totally forgot that you can have .gitignore in subdirectories. Since it's also handled there, I'll change it to match root dir only |
Should I change it for all environment names ( |
Hmm. Don't do all. We sometimes have .venv (or venv) in resources for mock projects at the moment. Just env please! |
I'm wrong! we have a gitignore there. if you want to do all (but .venv) that'd be great! |
This is actually good. It's making me think about this more than I thought I'd need to. I don't think .venv needs to be, but maybe I'm missing something with that too. |
I think we can safely match only those env dirs that are in root directory and handle other ones in separate |
82fec09
to
86d7782
Compare
Thanks! |
.gitignore
was matchingsrc/huak/env
folder, so I re-included it.Alternatively we could make venv dir matching more specific (e.g. only match them in root directory and/or
huak-py
). Should be fine either way.Or we could remove matching
env/
altogether, because pretty much no one uses that AFAIK ;)Let me know what would you prefer!