-
Notifications
You must be signed in to change notification settings - Fork 113
Expand file tree
/
Copy pathhatch.toml
More file actions
65 lines (54 loc) · 1.51 KB
/
hatch.toml
File metadata and controls
65 lines (54 loc) · 1.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
[envs.default]
installer = "uv"
features = ["dev"]
[envs.docs]
features = ["docs"]
extra-dependencies = [
"setuptools",
]
[envs.docs.scripts]
build = "sphinx-build -M html docs docs/_build -W {args}"
open = "python3 -m webbrowser -t docs/_build/html/index.html"
clean = "git clean -fdX -- {args:docs}"
[envs.data]
[envs.data.scripts]
download = "python ./.scripts/ci/download_data.py {args}"
[envs.hatch-test]
features = ["test"]
extra-dependencies = ["diff-cover"]
[envs.hatch-test.scripts]
# defaults (only `cov-report` is overridden)
run = "pytest{env:HATCH_TEST_ARGS:} -p no:cov {args}"
run-cov = "coverage run -m pytest{env:HATCH_TEST_ARGS:} -p no:cov {args}"
cov-combine = ["coverage combine"]
cov-report = [
"coverage report",
"coverage xml -o coverage.xml",
"diff-cover --compare-branch origin/main coverage.xml",
]
# extra commands
cov-erase = "coverage erase"
download = "python ./.scripts/ci/download_data.py {args}"
[[envs.hatch-test.matrix]]
deps = ["stable"]
python = ["3.12", "3.13"]
[[envs.hatch-test.matrix]]
deps = ["pre"]
python = ["3.13"]
[envs.hatch-test.overrides]
matrix.deps.env-vars = [
{ key = "UV_PRERELEASE", value = "allow", if = ["pre"] },
]
[envs.notebooks]
extra-dependencies = [
"ipykernel",
"jupytext",
"nbconvert",
"leidenalg",
"watermark",
"napari-spatialdata",
]
extras = ["docs"]
[envs.notebooks.scripts]
setup-squidpy-kernel = "python -m ipykernel install --user --name=squidpy"
run-notebooks = "python ./.scripts/ci/run_notebooks.py docs/notebooks"