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>
This commit is contained in:
1 parent
16aa73251b
commit
2beb581c6d
24 files changed
+1123
-1
No files matched your search
@@ -0,0 +1,30 @@
|
||||
# The same checks as `just lint`, run through uv so versions come from uv.lock, plus gitleaks.
|
||||
repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: ruff-check
|
||||
name: ruff check
|
||||
entry: uv run ruff check --force-exclude
|
||||
language: system
|
||||
types_or: [python, pyi]
|
||||
- id: ruff-format
|
||||
name: ruff format
|
||||
entry: uv run ruff format --check --force-exclude
|
||||
language: system
|
||||
types_or: [python, pyi]
|
||||
- id: pyright
|
||||
name: pyright
|
||||
entry: uv run pyright
|
||||
language: system
|
||||
types_or: [python, pyi]
|
||||
pass_filenames: false
|
||||
- id: import-linter
|
||||
name: import-linter
|
||||
entry: uv run lint-imports
|
||||
language: system
|
||||
types_or: [python, pyi, toml]
|
||||
pass_filenames: false
|
||||
- repo: https://github.com/gitleaks/gitleaks
|
||||
rev: v8.30.1
|
||||
hooks:
|
||||
- id: gitleaks
|
||||
Reference in new issue
Block a user