This is a template for Python projects including a script to generate requirements.txt and a virtual environment that loads the system site packages to avoid having to install large libraries multiple times on the same machine.
Inspired by romaine's python template.
conda activate base
python -m venv venv --system-site-packages
source venv/bin/activate
python scripts/generate_requirements.py
pip install -r requirements.txt
pytest
black .