Simple python template with:
- Poetry dependency manager
- Development libraries with custom configuration for:
- testing (pytest)
- formatting (black, isort)
- linting (pylint, mypy, flake8, pycodestyle)
- Jupyter notebook support
- Basic data science libraries (numpy, pandas, matplotlib)
First time setup:
- Create new repo with this template
- Find and replace "foo" with your package name
- Rename main "foo" folder
Requires:
- python3.9 or python3.10
- poetry (v1.0+)
- (recommended) vscode
To create the virtual environment:
$ make venv
Opening up jupyter notebooks in the python virtual environment:
$ make notebook
Adding new packages is super easy. Activate the environment and use the add
command. For example:
(venv) $ poetry add pandas