Contributing¶
Uses uv. Tests require a JDK (for local Spark).
uv sync # install deps
uv run pytest # run tests
uv run mypy typespark/
uv run ruff check .
uv run ruff format .
The test suite pins the Spark worker to the active interpreter automatically, so no
PYSPARK_PYTHON setup is needed.
Docs¶
uv run --group docs zensical serve # http://127.0.0.1:8000
Code shown in the docs lives in docs/snippets/*.py and is pulled into pages by
section (--8<-- "file.py:section"). tests/test_typecheck.py checks those files with
pyright and mypy, so the examples can't drift from the API.