Skip to content

Commit ddb4309

Browse files
[pre-commit.ci] pre-commit autoupdate (#263)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Philipp A. <flying-sheep@web.de>
1 parent 7492a73 commit ddb4309

2 files changed

Lines changed: 14 additions & 23 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.3.14
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.12.1
15+
rev: v2.14.2
1616
hooks:
1717
- id: pyproject-fmt
1818
- repo: https://github.com/astral-sh/ruff-pre-commit
19-
rev: v0.14.14
19+
rev: v0.15.0
2020
hooks:
2121
- id: ruff-check
2222
types_or: [python, pyi, jupyter]

pyproject.toml

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -36,35 +36,26 @@ urls.Documentation = "https://scverse.org/scverse-tutorials"
3636
urls.Home-page = "https://github.com/scverse/scverse-tutorials"
3737
urls.Source = "https://github.com/scverse/scverse-tutorials"
3838

39-
[tool.hatch.build.targets.wheel]
40-
bypass-selection = true # This is not a package
41-
42-
[tool.hatch.envs.default]
43-
installer = "uv"
44-
features = [ "dev" ]
45-
46-
[tool.hatch.envs.docs]
47-
features = [ "docs" ]
48-
extra-dependencies = [
49-
"setuptools", # undeclared dependency in pybtex
39+
[tool.hatch]
40+
build.targets.wheel.bypass-selection = true # This is not a package
41+
envs.default.installer = "uv"
42+
envs.default.features = [ "dev" ]
43+
envs.docs.features = [ "docs" ]
44+
envs.docs.extra-dependencies = [
5045
# fix from here: https://github.com/executablebooks/MyST-NB/pull/597
5146
"myst-nb @ git+https://github.com/flying-sheep/MyST-NB.git@eval-metadata",
5247
]
53-
scripts.build = "sphinx-build -M html docs docs/_build {args}"
54-
scripts.open = "python3 -m webbrowser -t docs/_build/html/index.html"
55-
scripts.clean = "git clean -fdX -- {args:docs}"
56-
57-
[tool.hatch.envs.registry]
58-
features = [ "registry" ]
59-
scripts.validate = "python tutorial-registry/validate.py {args}"
48+
envs.docs.scripts.build = "sphinx-build -M html docs docs/_build {args}"
49+
envs.docs.scripts.open = "python3 -m webbrowser -t docs/_build/html/index.html"
50+
envs.docs.scripts.clean = "git clean -fdX -- {args:docs}"
51+
envs.registry.features = [ "registry" ]
52+
envs.registry.scripts.validate = "python tutorial-registry/validate.py {args}"
6053

6154
[tool.ruff]
6255
line-length = 120
6356
src = [ "src" ]
6457
extend-include = [ "*.ipynb" ]
65-
6658
format.docstring-code-format = true
67-
6859
lint.select = [
6960
"B", # flake8-bugbear
7061
"BLE", # flake8-blind-except

0 commit comments

Comments
 (0)