Contributing to Risk Bridge¶
Thank you for helping improve Risk Bridge! This guide outlines the development workflow and contribution expectations.
Issue Tracker¶
- Bug reports, feature suggestions, and questions belong on GitHub Issues.
- Please search existing issues before creating a new one.
Local Development Setup¶
We use uv for fast, reproducible dependency resolution:
# 1. Clone your fork or the repository
git clone https://github.com/SaehwanPark/risk-bridge.git
cd risk-bridge
# 2. Sync all dependencies (including dev and docs groups)
uv sync --locked --group dev --group docs
# 3. Run the test suite
uv run pytest
# 4. Check type safety
uv run basedpyright
# 5. Build and preview documentation locally
uv run mkdocs serve
Guidelines for Pull Requests¶
- Focused Scope: Keep PRs focused on a single change or bugfix.
- Test Coverage: All modifications to likelihood math, constraints, or calibration must be accompanied by focused unit tests.
- Documentation: Keep documentation in sync. If modifying API signatures or CLI arguments, update the corresponding markdown pages in
docs/. - Clean Builds: Ensure
uv run pytest,uv run basedpyright, anduv run mkdocs build --strictpass with zero warnings before opening a PR. - Privacy Guardrail: The public repository contains only privacy-safe synthetic cases. Never submit private or identifiable patient-level data.