I'm setting up a python project in git and the I want to run the project in a venv. I'm running python3 -m venv .
in the root of the git repo.
This creates multiple directories and a file:
Which of these files and folders are import to my colleagues to set up the environment in the same way I did? In the root of the project I've also included this script to set up:
python3 -m venv .
source bin/activate
pip3 install -r requirements.txt
You should ignore the entire venv
folder.
To make that easier, you probabaly want to do python3 -m venv .venv
instead, and add .venv
to your .gitignore
file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With