Contributing
Proposing a new extension
- Open an issue describing the field behavior, SQL types per backend, Tortoise version requirements, and the proposed optional-extra name.
- Wait for maintainer feedback before starting implementation.
Pull requests
Include:
- Implementation in
src/tortoise_extensions/<module>.py - Google-style docstrings on public APIs
- Tests under
tests/ - Optional dependency entry in
pyproject.tomlwhen third-party packages are required - Updates to
docs/usage.mdanddocs/api.mdwhen user-facing behavior changes
Run the quality gate locally:
pdm install -G dev -G test -G docs
pdm run quality
pdm run docs:build