Contributing¶
Bug reports, feature requests and pull requests are welcome. Please open an issue first for larger changes.
Development setup¶
The project is managed with uv:
git clone https://github.com/kalfasyan/plakakia
cd plakakia
uv sync # creates .venv with the package and all dev tools
uv run pre-commit install # lint and format on every commit
Everyday commands¶
uv run pytest # tests (+ doctests)
uv run pytest --cov # with coverage
uv run ruff check --fix . # lint
uv run ruff format . # format
uv run mypy # type-check (strict)
uv run mkdocs serve # docs at http://127.0.0.1:8000
uv run python benchmarks/bench_pipeline.py --workers 1 4
Guidelines¶
- Keep
plakakia.tilingpure NumPy (no I/O); file handling belongs inio,annotationsandpipeline. - Add tests for every behaviour change, and type hints and Google-style docstrings for every public function.
- Add an entry to
CHANGELOG.mdunder Unreleased.
Releasing¶
- Bump
versioninpyproject.toml(uv version --bump minor) and update the changelog. - Create a GitHub release tagged
vX.Y.Z. TheReleaseworkflow builds the package and publishes it to PyPI via trusted publishing.