<One sentence: what the library does. Published to PyPI as <name>.>
Stack
- Python <supported versions, e.g. 3.10-3.14>; build backend
; managed with -
Tests: pytest (+ hypothesis for property tests); types: <mypy –strict pyright>; lint: ruff
Commands
- Setup:
uv sync --all-extras - Tests:
uv run pytest -q; across versions:<uv run nox | tox> - Lint/format:
uv run ruff check --fix . && uv run ruff format . - Types:
uv run mypy src - Build:
uv build - Docs:
<uv run mkdocs serve>
Rules
- Public API is what
__init__.pyexports and what is documented. Changing it needs a deprecation (warning for at least one minor release) and a changelog entry. - Every public function has type hints and a docstring with an example.
- Support every Python version in
requires-python; do not use syntax or stdlib features newer than the minimum. - No new runtime dependencies without discussion; optional features go behind extras.
- Tests for every bug fix; property-based tests for parsers and serializers.
- Update
CHANGELOG.mdunder Unreleased for user-visible changes.
Definition of done
- Tests pass on the minimum and latest supported Python, ruff and type checks clean, changelog updated.