new: uv project with a /livez probe app (#74)
uv project on Python 3.14 with Ruff (incl. DTZ), pyright strict, and `just test/lint` as dev dependencies. The internal probe app serves a constant `/livez`; the public API app doesn't serve it (ADR-0009). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
16aa73251b
commit
586cd91f82
11 files changed
+553
-1
No files matched your search
@@ -0,0 +1,52 @@
|
||||
[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",
|
||||
]
|
||||
|
||||
[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",
|
||||
]
|
||||
Reference in new issue
Block a user