Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/openstatusHQ/sdk-python. Official Python SDK for openstatus
Something went wrong. Try again.
sdk-python CONTRIBUTING.md
1.1 kB · 46 lines
Markdown
at main
Contributing #
Development setup #
uv sync
This installs the dev dependency group (pytest, pyright, ruff, respx).
Running checks #
uv run ruff check .
uv run ruff format --check .
uv run pyright
uv run pytest tests/unit
Regenerating protobuf message classes #
The generated tree under src/openstatus/_gen/ is committed. To bump the pinned
schema version:
- Edit
BUF_PY_VERSIONinscripts/regen.sh. - Run
bash scripts/regen.sh. - Commit
scripts/regen.shand the resultingsrc/openstatus/_gen/diff together.
A weekly GitHub Action opens this PR automatically when a newer archive is published.
Integration tests #
Integration tests hit the live API and are gated on OPENSTATUS_API_KEY. They
are not run in CI:
OPENSTATUS_API_KEY=... uv run pytest tests/integration
PR conventions #
- Use
from __future__ import annotationsat the top of every hand-written module. - Keep public surface explicit via
__all__. - Add a
CHANGELOG.mdentry under[Unreleased]for any user-visible change.