Files
hapi/README.md
T
BobbyandClaude Opus 5.5 2beb581c6d new: project skeleton with a live probe (#74)
uv project on Python 3.14 with Ruff (incl. DTZ), pyright strict, and
import-linter contracts: composition root above domains above platform,
each domain reachable from others only through its `service` module, and
`bots/` forbidden from importing `hapi`. `just dev/test/lint` recipes and
pre-commit running the same checks plus gitleaks. `just` and `pre-commit`
are dev dependencies, so uv is the only tool needed outside the venv.

`hapi serve` runs the public API (:8000) and the internal probe listener
(:8081) as two uvicorn servers in one event loop (ADR-0009); `/livez` is
constant and served only on :8081.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 16:56:02 -05:00

534 B

starting fresh yo

Development

The only tool needed outside the project is uv. Everything else (just, pre-commit, Ruff, pyright, import-linter) is a dev dependency in the project venv:

uv sync                      # create .venv with all dev tools
uv run just lint             # Ruff, pyright strict, import-linter
uv run just test             # pytest
uv run just dev              # API on :8000, probes on :8081
uv run pre-commit install    # optional: run lint + gitleaks on commit