Base setup for a python project for vscode It's tested on a Ubuntu 20.04 computer with python3 and pip3 installed
black==21.11b1
flake8==4.0.1
- Settnings to set black to formater and flake8 to linter
- A python virtual environment
- Create a new folder (linux)
mkdir myfolder- Start a local git repository
- Create a new folder (linux)
git init- Clone into your new folder
git clone https://github.com/johanalmquist/python-projects-template.git- Create a virtual environment (for linux)
python3 -m venv .venv- Activate virtual environment
source .venv/bin/activate- Install pip packages
pip3 install -r requirements.txt