- MIT/Apache License
- Makefile
- uv
- Formatting
- ruff
- Linters
- ruff
- mypy
- Pytest
- Documentation with mkdocs
- Github Actions
- Github pages
- Publish to pypi
- Run tests and linters
- Bump a version
- Check a PR title
- CLI
Install the latest Cookiecutter
pip install -U cookiecutter
Generate a Python project:
cookiecutter https://github.com/daxartio/python-project-template.git
Then:
cd ./your-project
make install
make format lint test
- Generate an API token, see https://pypi.org/help/
- Add the token to https://github.com/username/your-project/settings/secrets/actions
- PYPI_USERNAME
__token__
- PYPI_PASSWORD
pypi-...
- PYPI_USERNAME
- Workflow permissions https://github.com/username/your-project/settings/actions
- Set "Read and write permissions" to true