From 390cc155389ee1e4025360e9753eb0b20d8e3711 Mon Sep 17 00:00:00 2001 From: demo-bot Date: Sun, 9 Aug 2026 16:01:11 +0000 Subject: [PATCH] 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. --- pyproject.toml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3bdf7d5..a4031a5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,25 +1,25 @@ [build-system] -requires = ["hatchling>=1.25,<2"] +requires = ["hatchling>=1.26"] build-backend = "hatchling.build" [project] -name = "endpoint-monitor-service" +name = "endpoint-monitor" version = "1.0.0" -description = "Process-local FastAPI endpoint monitor" +description = "Process-local FastAPI endpoint monitoring service" requires-python = ">=3.12" dependencies = [ "fastapi>=0.115,<1", "httpx>=0.27,<1", - "pydantic-settings>=2.5,<3", - "uvicorn[standard]>=0.30,<1", + "pydantic-settings>=2.6,<3", + "uvicorn[standard]>=0.32,<1", ] [project.optional-dependencies] dev = [ - "mypy>=1.11,<2", + "mypy>=1.13,<2", "pytest>=8.3,<9", - "pytest-anyio>=0.0.0,<1", - "ruff>=0.6,<1", + "pytest-asyncio>=0.24,<1", + "ruff>=0.8,<1", ] [tool.hatch.build.targets.wheel] @@ -27,17 +27,18 @@ packages = ["app"] [tool.pytest.ini_options] addopts = "-q" +asyncio_mode = "auto" testpaths = ["tests"] [tool.ruff] -line-length = 100 target-version = "py312" +line-length = 100 [tool.ruff.lint] select = ["E", "F", "I", "UP", "B", "ASYNC"] [tool.mypy] python_version = "3.12" -disallow_untyped_defs = true -warn_unused_ignores = true +strict = true packages = ["app"] +plugins = ["pydantic.mypy"]