Skip to content

Create .gitignore to ignore venv folder#8

Open
BakungaBronson wants to merge 3 commits intoyoheinakajima:mainfrom
BakungaBronson:patch-1
Open

Create .gitignore to ignore venv folder#8
BakungaBronson wants to merge 3 commits intoyoheinakajima:mainfrom
BakungaBronson:patch-1

Conversation

@BakungaBronson
Copy link
Copy Markdown

When you run python3 -m venv venv you end up with a venv folder. This change tells git to ignore it and all the files inside.

@pypeaday
Copy link
Copy Markdown

I might suggest adding .venv to the file
For python stuff I usually just use this actually https://www.toptal.com/developers/gitignore/api/python

But the dot folder would be created by default by some tools, for example uv venv will create a virtual env in .venv by default

@BakungaBronson
Copy link
Copy Markdown
Author

I actually removed the other options because I didn't know who might need it but I should just use the ones given in the template as you suggested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants