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,5 +1,5 @@
|
|||||||
[build-system]
|
[build-system]
|
||||||
requires = ["hatchling>=1.26"]
|
requires = ["hatchling"]
|
||||||
build-backend = "hatchling.build"
|
build-backend = "hatchling.build"
|
||||||
|
|
||||||
[project]
|
[project]
|
||||||
@@ -18,7 +18,7 @@ dependencies = [
|
|||||||
dev = [
|
dev = [
|
||||||
"mypy>=1.13,<2",
|
"mypy>=1.13,<2",
|
||||||
"pytest>=8.3,<9",
|
"pytest>=8.3,<9",
|
||||||
"pytest-asyncio>=0.24,<1",
|
"pytest-anyio>=0.0.0,<1",
|
||||||
"ruff>=0.8,<1",
|
"ruff>=0.8,<1",
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -26,16 +26,15 @@ dev = [
|
|||||||
packages = ["app"]
|
packages = ["app"]
|
||||||
|
|
||||||
[tool.pytest.ini_options]
|
[tool.pytest.ini_options]
|
||||||
addopts = "-q"
|
|
||||||
asyncio_mode = "auto"
|
|
||||||
testpaths = ["tests"]
|
testpaths = ["tests"]
|
||||||
|
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", "UP", "B", "ASYNC"]
|
select = ["E", "F", "I", "B", "UP"]
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
python_version = "3.12"
|
python_version = "3.12"
|
||||||
|
|||||||
Reference in New Issue
Block a user