Skip to content

Commit 1343bc4

Browse files
committed
setup for less-dependency core checks
1 parent 9c59e50 commit 1343bc4

1 file changed

Lines changed: 17 additions & 1 deletion

File tree

pyproject.toml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,14 @@ optional-dependencies.test = [
7575
"torch",
7676
"vitessce[all]>=3.4",
7777
]
78+
# Trunk-only test extras: same as `test` minus integration deps (lamindb, torch, vitessce).
79+
# Used by the `core` matrix variant of hatch-test to keep ehrdata compatible with the latest, unconstrained anndata since this is critical
80+
optional-dependencies.test-core = [
81+
"coverage>=7.10",
82+
"dask",
83+
"pytest",
84+
"pytest-cov",
85+
]
7886
optional-dependencies.torch = [
7987
"torch",
8088
]
@@ -94,7 +102,15 @@ envs.docs.scripts.build = "sphinx-build -M html docs docs/_build {args}"
94102
envs.docs.scripts.open = "python -m webbrowser -t docs/_build/html/index.html"
95103
envs.docs.scripts.clean = "git clean -fdX -- {args:docs}"
96104
envs.hatch-test.features = [ "test" ]
97-
envs.hatch-test.matrix = [ { python = [ "3.12", "3.14" ] } ]
105+
envs.hatch-test.matrix = [
106+
# Standard matrix: run the full integration-aware test extras on both supported
107+
{ python = [ "3.12", "3.14" ] },
108+
# Integration-free "core" lane
109+
{ python = [ "3.14" ], variant = [ "core" ] },
110+
]
111+
envs.hatch-test.overrides.matrix.variant.set-features = [
112+
{ value = "test-core", if = [ "core" ] },
113+
]
98114

99115
[tool.ruff]
100116
line-length = 120

0 commit comments

Comments
 (0)