@@ -81,43 +81,31 @@ full = [
8181 " xgboost" ,
8282]
8383
84- [tool .hatch .envs .default ]
85- installer = " uv"
86- dependency-groups = [ " dev" ]
87-
88- [tool .hatch .envs .docs ]
89- dependency-groups = [ " doc" ]
90- scripts.build = " sphinx-build -M html docs docs/_build -W {args}"
91- scripts.open = " python -m webbrowser -t docs/_build/html/index.html"
92- scripts.clean = " git clean -fdX -- {args:docs}"
93-
94- # Test the lowest and highest supported Python versions with normal deps
95- [[tool .hatch .envs .hatch-test .matrix ]]
96- deps = [ " stable" ]
97- python = [ " 3.11" , " 3.14" ]
98-
99- # Test the newest supported Python version also with pre-release deps
100- [[tool .hatch .envs .hatch-test .matrix ]]
101- deps = [ " pre" ]
102- python = [ " 3.14" ]
103-
104- [tool .hatch .envs .hatch-test ]
105- dependency-groups = [ " dev" , " test" ]
106-
107- [tool .hatch .envs .hatch-test .overrides ]
84+ [tool .hatch ]
85+ envs.default.installer = " uv"
86+ envs.default.dependency-groups = [ " dev" ]
87+ envs.docs.dependency-groups = [ " doc" ]
88+ envs.docs.scripts.build = " sphinx-build -M html docs docs/_build -W {args}"
89+ envs.docs.scripts.open = " python -m webbrowser -t docs/_build/html/index.html"
90+ envs.docs.scripts.clean = " git clean -fdX -- {args:docs}"
91+ envs.hatch-test.dependency-groups = [ " dev" , " test" ]
92+ envs.hatch-test.matrix = [
93+ # Test the lowest and highest supported Python versions with normal deps
94+ { deps = [ " stable" ], python = [ " 3.11" , " 3.14" ] },
95+ # Test the newest supported Python version also with pre-release deps
96+ { deps = [ " pre" ], python = [ " 3.14" ] },
97+ ]
10898# If the matrix variable `deps` is set to "pre",
10999# set the environment variable `UV_PRERELEASE` to "allow".
110- matrix.deps.env-vars = [
100+ envs.hatch-test.overrides. matrix.deps.env-vars = [
111101 { key = " UV_PRERELEASE" , value = " allow" , if = [ " pre" ] },
112102]
113103
114104[tool .ruff ]
115105line-length = 120
116106src = [ " src" ]
117107extend-include = [ " *.ipynb" ]
118-
119108format.docstring-code-format = true
120-
121109lint.select = [
122110 " B" , # flake8-bugbear
123111 " BLE" , # flake8-blind-except
@@ -158,12 +146,12 @@ addopts = [
158146 " --import-mode=importlib" , # allow using test files with same name
159147]
160148
161- [tool .coverage .run ]
162- source = [ " decoupler" ]
163- patch = [ " subprocess" ]
164- omit = [
149+ [tool .coverage ]
150+ run.omit = [
165151 " **/test_*.py" ,
166152]
153+ run.patch = [ " subprocess" ]
154+ run.source = [ " decoupler" ]
167155
168156[tool .cruft ]
169157skip = [
0 commit comments