Barebones cookiecutter for python packages
-
Create a virtual environment & activate
python -m venv .venv && source .venv/bin/activate
-
Install this package
pip install . -r requirements.txt
Or for dev mode:
pip install -e ".[dev]" -r requirements.txt -r requirements_dev.txt
Create a package with
cookiecutter .
Creates a new project with the following configurations
- package configured w/
pyproject.toml
- dependencies managed with
pip-tools
- tests using
pytest
- CI configuration for GitHub Actions
- MIT License
pre-commit
hooksblack
flake8
isort
Make sure dev dependencies are installed
pip install -r requirements_dev.txt
Test with:
pytest