Skip to content

Commit 6644c97

Browse files
committed
fix(ci): make scripts importable under plain pytest and add httpx to runtime deps
- pytest pythonpath=["."] so 'from scripts import ...' resolves in CI (plain pytest) - httpx moved to main deps: scripts/dump.py (TestClient) runs under 'pip install -e .' in the refresh-data and deploy-pages workflows
1 parent d76cfce commit 6644c97

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ dependencies = [
1414
"pydantic>=2.9",
1515
"pydantic-settings>=2.5",
1616
"scalar-fastapi>=1.0.3",
17+
"httpx>=0.27", # TestClient — used by scripts/dump.py (static dump build step)
1718
]
1819

1920
[project.optional-dependencies]
2021
dev = [
2122
"pytest>=8.3",
2223
"pytest-cov>=5.0",
2324
"pytest-asyncio>=0.24",
24-
"httpx>=0.27",
2525
"ruff>=0.6",
2626
"mypy>=1.11",
2727
]
@@ -54,6 +54,7 @@ ignore_missing_imports = true
5454
testpaths = ["tests"]
5555
addopts = "-q"
5656
asyncio_mode = "auto"
57+
pythonpath = ["."] # make top-level `scripts` importable under plain `pytest` (CI)
5758

5859
[tool.coverage.run]
5960
source = ["app"]

0 commit comments

Comments
 (0)