Skip to content

Commit 428c312

Browse files
authored
Merge pull request #291 from scverse/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2 parents e1c6998 + f606a20 commit 428c312

2 files changed

Lines changed: 22 additions & 34 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@ default_stages:
77
minimum_pre_commit_version: 2.16.0
88
repos:
99
- repo: https://github.com/biomejs/pre-commit
10-
rev: v2.3.10
10+
rev: v2.4.4
1111
hooks:
1212
- id: biome-format
1313
exclude: ^\.cruft\.json$ # inconsistent indentation with cruft - file never to be modified manually.
1414
- repo: https://github.com/tox-dev/pyproject-fmt
15-
rev: v2.11.1
15+
rev: v2.16.2
1616
hooks:
1717
- id: pyproject-fmt
1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.14.13
19+
rev: v0.15.4
2020
hooks:
2121
- id: ruff-check
2222
types_or: [python, pyi, jupyter]

pyproject.toml

Lines changed: 19 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -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]
115105
line-length = 120
116106
src = [ "src" ]
117107
extend-include = [ "*.ipynb" ]
118-
119108
format.docstring-code-format = true
120-
121109
lint.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]
169157
skip = [

0 commit comments

Comments
 (0)