decomposer: generate deliverable files for Define the service contract and project architecture for the FastAPI endpoint monitoring service.; Implement the typed monitor CRUD API and concurrency-safe in-memory state according to the service design.; Implement secure on-demand endpoint checks with status updates, latency measurement, robust error handling, and redacted structured logs.; Add operational API endpoints and environment-driven runtime configuration to the monitoring service.; Create automated tests for the monitoring service.; Package the service with Docker and developer documentation.; Validate the complete project.
This commit is contained in:
@@ -1,25 +1,18 @@
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = ["hatchling"]
|
requires = ["hatchling==1.27.0"]
|
||||||
build-backend = "hatchling.build"
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "endpoint-monitor"
|
name = "endpoint-monitor"
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
description = "Process-local FastAPI endpoint monitoring service"
|
description = "Process-local FastAPI endpoint monitoring service"
|
||||||
requires-python = ">=3.12"
|
readme = "README.md"
|
||||||
|
requires-python = ">=3.12,<3.13"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"fastapi>=0.115,<1",
|
"fastapi==0.115.12",
|
||||||
"httpx>=0.27,<1",
|
"httpx==0.28.1",
|
||||||
"pydantic-settings>=2.6,<3",
|
"pydantic-settings==2.9.1",
|
||||||
"uvicorn[standard]>=0.32,<1",
|
"uvicorn[standard]==0.34.2",
|
||||||
]
|
|
||||||
|
|
||||||
[project.optional-dependencies]
|
|
||||||
dev = [
|
|
||||||
"mypy>=1.13,<2",
|
|
||||||
"pytest>=8.3,<9",
|
|
||||||
"pytest-anyio>=0.0.0,<1",
|
|
||||||
"ruff>=0.8,<1",
|
|
||||||
]
|
]
|
||||||
|
|
||||||
[tool.hatch.build.targets.wheel]
|
[tool.hatch.build.targets.wheel]
|
||||||
@@ -30,8 +23,8 @@ testpaths = ["tests"]
|
|||||||
addopts = "-q"
|
addopts = "-q"
|
||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
line-length = 120
|
|
||||||
target-version = "py312"
|
target-version = "py312"
|
||||||
|
line-length = 100
|
||||||
|
|
||||||
[tool.ruff.lint]
|
[tool.ruff.lint]
|
||||||
select = ["E", "F", "I", "B", "UP"]
|
select = ["E", "F", "I", "B", "UP"]
|
||||||
@@ -39,5 +32,8 @@ select = ["E", "F", "I", "B", "UP"]
|
|||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
python_version = "3.12"
|
python_version = "3.12"
|
||||||
strict = true
|
strict = true
|
||||||
packages = ["app"]
|
|
||||||
plugins = ["pydantic.mypy"]
|
plugins = ["pydantic.mypy"]
|
||||||
|
|
||||||
|
[[tool.mypy.overrides]]
|
||||||
|
module = ["tests.*"]
|
||||||
|
disallow_untyped_decorators = false
|
||||||
|
|||||||
Reference in New Issue
Block a user