Files
hapi/pyproject.toml
BobbyandClaude Opus 5.5 12b634b7e0 new: hapi serve runs the API and probes in one event loop (#74)
Two uvicorn servers, the public API on :8000 and the internal probe
listener on :8081, share one event loop (ADR-0009), so a wedged loop
fails liveness. SIGINT/SIGTERM stops both; if one listener stops or
fails to start, the other stops with it.

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

58 lines
1.1 KiB
TOML

[project]
name = "hapi"
version = "0.1.0"
description = "Personal, cloud-hosted API for one Household and its automations"
readme = "README.md"
requires-python = ">=3.14"
dependencies = [
"fastapi>=0.165.0",
"typer>=0.29.3",
"uvicorn>=0.54.0",
]
[project.scripts]
hapi = "hapi.cli:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/hapi"]
[tool.pytest.ini_options]
asyncio_mode = "auto"
asyncio_default_fixture_loop_scope = "function"
testpaths = ["tests"]
[tool.ruff]
line-length = 100
target-version = "py314"
src = ["src", "tests"]
[tool.ruff.lint]
select = [
"E", "W", "F", "I", "N", "UP", "B", "A", "C4", "DTZ", "S", "SIM", "PT",
"RET", "TID", "ASYNC", "PL", "RUF",
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["S101", "S603", "PLR2004"]
[tool.pyright]
include = ["src", "tests"]
pythonVersion = "3.14"
typeCheckingMode = "strict"
venvPath = "."
venv = ".venv"
[dependency-groups]
dev = [
"httpx>=0.29.0",
"pyright>=1.1.414",
"pytest>=9.2.0",
"pytest-asyncio>=1.5.0",
"ruff>=0.17.6",
"rust-just>=1.59.0",
]