-
Notifications
You must be signed in to change notification settings - Fork 113
Expand file tree
/
Copy pathhatch.toml
More file actions
48 lines (44 loc) · 1.46 KB
/
hatch.toml
File metadata and controls
48 lines (44 loc) · 1.46 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
[envs.default]
installer = "uv"
dependency-groups = ["dev"]
[envs.docs]
dependency-groups = ["docs"]
scripts.build = "sphinx-build -M html docs docs/_build -W {args}"
scripts.open = "python3 -m webbrowser -t docs/_build/html/index.html"
scripts.clean = "git clean -fdX -- {args:docs}"
[envs.data]
scripts.download = "python ./.scripts/ci/download_data.py {args}"
[envs.hatch-test]
dependency-groups = ["test"]
extra-dependencies = ["diff-cover"]
matrix = [
{ deps = ["stable"], python = ["3.11", "3.12", "3.13"] },
{ deps = ["pre"], python = ["3.13"] },
]
overrides.matrix.deps.env-vars = [
{ key = "UV_PRERELEASE", value = "allow", if = ["pre"] },
]
# default commands (only `cov-report` is overridden)
scripts.run = "pytest{env:HATCH_TEST_ARGS:} -p no:cov {args}"
scripts.run-cov = "coverage run -m pytest{env:HATCH_TEST_ARGS:} -p no:cov {args}"
scripts.cov-combine = ["coverage combine"]
scripts.cov-report = [
"coverage report",
"coverage xml -o coverage.xml",
"diff-cover --compare-branch origin/main coverage.xml",
]
# extra commands
scripts.cov-erase = "coverage erase"
scripts.download = "python ./.scripts/ci/download_data.py {args}"
[envs.notebooks]
extra-dependencies = [
"ipykernel",
"jupytext",
"nbconvert",
"leidenalg",
"watermark",
"napari-spatialdata",
]
extras = ["docs"]
scripts.setup-squidpy-kernel = "python -m ipykernel install --user --name=squidpy"
scripts.run-notebooks = "python ./.scripts/ci/run_notebooks.py docs/notebooks"