Cookiecutter template for a Python 3.6+ package for Boardpack projects.
- Documentation with
MkDocs
withMaterial theme
- Formatting with
isort
,flake8
andblack
- Testing setup with
pytest
-
Tox
testing: setup to easily test for Python 3.6, 3.7, 3.8, 3.9 - Comes with pre-commit hook config for black, isort, flake8, mypy
- Static typing with
mypy
- Dependencies kept up to date by
dependabot
- Automatic packaging with
flit
- Ready-to-use GitHub Actions pipelines:
- Netlify Preview documentation deployment
- First PR greeting
- Testing
- Package publishing
- Automatic release notes updating
- Enable the GitHub repository in Dependabot
- Enable the GitHub repository in Codecov
- Add the next environment variables:
- Make the next changes on the Netlify dashboard:
- Turn off Deploy Previews (Settings -> Build & deploy -> Continuous Deployment -> Deploy Previews)
- Change Production branch into any other name (Settings -> Build & deploy -> Continuous Deployment -> Deploy contexts)
- Replace default images in the docs and README.md
- Add custom domain to Netlify (optional)
When creating this template, the following repositories were used (special thanks to Sebastián Ramírez and his FastAPI project, some scripts and documentation structure and parts were used from there):
- https://github.com/tiangolo/fastapi
- https://github.com/audreyfeldroy/cookiecutter-pypackage
- https://github.com/sourcery-ai/python-best-practices-cookiecutter
- https://github.com/frankie567/cookiecutter-hipster-pypackage
- https://github.com/browniebroke/cookiecutter-pypackage
This project is licensed under the terms of the MIT license.