From cbcca1070b89773f862e4808360a6984da084147 Mon Sep 17 00:00:00 2001 From: Artur Shiriev Date: Thu, 4 Jun 2026 00:27:01 +0300 Subject: [PATCH] replace httpx with httpx2 in dev deps Resolves StarletteDeprecationWarning from `starlette.testclient.TestClient`, which now prefers httpx2 (Pydantic's continuation of httpx). Also bundles two pre-existing working-tree changes: - migrate build backend from hatchling to uv_build - enforce 100% test coverage via --cov-fail-under=100 Co-Authored-By: Claude Opus 4.7 (1M context) --- pyproject.toml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 5c0b397..d441290 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ dev = [ "pytest", "pytest-cov", "pytest-asyncio", - "httpx", + "httpx2", ] lint = [ "ty", @@ -37,11 +37,13 @@ lint = [ ] [build-system] -requires = ["hatchling"] -build-backend = "hatchling.build" +requires = ["uv_build>=0.11,<1.0"] +build-backend = "uv_build" + +[tool.uv.build-backend] +module-name = "modern_di_fastapi" +module-root = "" -[tool.hatch.build] -include = ["modern_di_fastapi"] [tool.ruff] fix = false @@ -69,7 +71,7 @@ isort.lines-after-imports = 2 isort.no-lines-before = ["standard-library", "local-folder"] [tool.pytest.ini_options] -addopts = "--cov=. --cov-report term-missing" +addopts = "--cov=. --cov-report term-missing --cov-fail-under=100" asyncio_mode = "auto" asyncio_default_fixture_loop_scope = "function"