@@ -73,52 +73,37 @@ optional-dependencies.tutorials = [
7373 " sopa>=2" ,
7474 " squidpy>=1.6" ,
7575]
76-
7776# https://docs.pypi.org/project_metadata/#project-urls
7877urls.Documentation = " https://cellmapper.readthedocs.io/"
7978urls.Homepage = " https://github.com/quadbio/cellmapper"
8079urls.Source = " https://github.com/quadbio/cellmapper"
8180
82- [tool .hatch .version ]
83- source = " vcs"
84-
85- [tool .hatch .envs .default ]
86- installer = " uv"
87- features = [ " dev" ]
88-
89- [tool .hatch .envs .docs ]
90- features = [ " doc" ]
91- scripts.build = " sphinx-build -M html docs docs/_build {args}"
92- scripts.open = " python -m webbrowser -t docs/_build/html/index.html"
93- scripts.clean = " git clean -fdX -- {args:docs}"
94-
95- # Test the lowest and highest supported Python versions with normal deps
96- [[tool .hatch .envs .hatch-test .matrix ]]
97- deps = [ " stable" ]
98- python = [ " 3.11" , " 3.14" ]
99-
100- # Test the newest supported Python version also with pre-release deps
101- [[tool .hatch .envs .hatch-test .matrix ]]
102- deps = [ " pre" ]
103- python = [ " 3.14" ]
104-
105- [tool .hatch .envs .hatch-test ]
106- features = [ " dev" , " test" ]
107-
108- [tool .hatch .envs .hatch-test .overrides ]
81+ [tool .hatch ]
82+ envs.default.installer = " uv"
83+ envs.default.features = [ " dev" ]
84+ envs.docs.features = [ " doc" ]
85+ envs.docs.scripts.build = " sphinx-build -M html docs docs/_build {args}"
86+ envs.docs.scripts.open = " python -m webbrowser -t docs/_build/html/index.html"
87+ envs.docs.scripts.clean = " git clean -fdX -- {args:docs}"
88+ envs.hatch-test.features = [ " dev" , " test" ]
89+ envs.hatch-test.matrix = [
90+ # Test the lowest and highest supported Python versions with normal deps
91+ { deps = [ " stable" ], python = [ " 3.11" , " 3.14" ] },
92+ # Test the newest supported Python version also with pre-release deps
93+ { deps = [ " pre" ], python = [ " 3.14" ] },
94+ ]
10995# If the matrix variable `deps` is set to "pre",
11096# set the environment variable `UV_PRERELEASE` to "allow".
111- matrix.deps.env-vars = [
97+ envs.hatch-test.overrides. matrix.deps.env-vars = [
11298 { key = " UV_PRERELEASE" , value = " allow" , if = [ " pre" ] },
11399]
100+ version.source = " vcs"
114101
115102[tool .ruff ]
116103line-length = 120
117104src = [ " src" ]
118105extend-include = [ " *.ipynb" ]
119-
120106format.docstring-code-format = true
121-
122107lint.select = [
123108 " B" , # flake8-bugbear
124109 " BLE" , # flake8-blind-except
@@ -159,12 +144,12 @@ addopts = [
159144 " --import-mode=importlib" , # allow using test files with same name
160145]
161146
162- [tool .coverage .run ]
163- source = [ " cellmapper" ]
164- patch = [ " subprocess" ]
165- omit = [
147+ [tool .coverage ]
148+ run.omit = [
166149 " **/test_*.py" ,
167150]
151+ run.patch = [ " subprocess" ]
152+ run.source = [ " cellmapper" ]
168153
169154[tool .cruft ]
170155skip = [
0 commit comments