-
Notifications
You must be signed in to change notification settings - Fork 257
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
Want to use venv but it's stored in .gitignore as a file not directory? #1184
Comments
Would docker be a preferred over |
hmm, I'm also not sure as it was added in https://github.com/Nandaka/PixivUtil2/pull/1015/files#diff-bc37d034bad564583790a46f19d807abfe519c5671395fd494d8cce506c42947 by @BassOfBass and I don't use virtual environment |
With that said.... I have not tried to do that (yet). I run this on Windows and use the exe builds (and make my own when testing code). |
I am assuming when migrating from |
hmm, then it should be changed to |
Perhaps it should be removed altogether, because in probably the only circumstance it was needed was in the use case by BassOfBass, in which anyone could create a |
not really, the venv folder should not be included into the main repo, right? If you remove it, the venv folder might accidentally added if someone use |
Yeah, virtual environments should not be committed and it's a good practice to have some safeguards against it. It's why the GitHub Python .gitignore includes it. |
With that in mind the venv entry should probably be replaced with this (taken from the previously mentioned link) in order to try and avoid venv from being committed in error.
|
The way it's currently setup, the .gitignore would only ignore venv if it was a file. As others are now pointing out, other .gitignores are properly safeguarding against these folders. I'd like to point out it has been lingering there for over a year without anyone noticing however, so I am doubting we, collectively as PixivUtil2 devs, are using venvs like this, lol. |
Done and done. |
Prerequisites
Description
I'm doing a fresh install of my operating system on a new drive and wanted to utilize Python3's
venv
to run PixivUtil2. While I could put the virtual environment anywhere, I noticed this:PixivUtil2/.gitignore
Line 5 in 9faed1d
venv
is in the ignore list as a file and not a directory? If that's the case, could I have clarification on what this ignore file actually is?Steps to Reproduce
N/A
Expected behavior:
N/A
Actual behavior:
N/A
Log file:
N/A
Versions
N/A
The text was updated successfully, but these errors were encountered: