Skip to content

Commit c2c2fba

Browse files
[pre-commit.ci] pre-commit autoupdate (#153)
Co-authored-by: Phil Schaf <flying-sheep@web.de>
1 parent b965296 commit c2c2fba

3 files changed

Lines changed: 13 additions & 11 deletions

File tree

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,17 @@ repos:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
77
- repo: https://github.com/astral-sh/ruff-pre-commit
8-
rev: v0.15.13
8+
rev: v0.15.16
99
hooks:
1010
- id: ruff-check
1111
args: [--fix, --preview]
1212
- id: ruff-format
1313
- repo: https://github.com/tox-dev/pyproject-fmt
14-
rev: v2.21.2
14+
rev: v2.23.0
1515
hooks:
1616
- id: pyproject-fmt
1717
- repo: https://github.com/biomejs/pre-commit
18-
rev: v2.4.15
18+
rev: v2.4.16
1919
hooks:
2020
- id: biome-format
2121
- repo: https://github.com/kynan/nbstripout

pyproject.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,17 @@ docs = [
5656
]
5757

5858
[tool.hatch]
59-
envs.default.dependencies = [ "ipykernel" ]
60-
envs.default.installer = "uv"
59+
version.source = "vcs"
60+
metadata.hooks.docstring-description = {}
6161
envs.default.python = "3.13"
62+
envs.default.installer = "uv"
63+
envs.default.dependencies = [ "ipykernel" ]
6264
envs.docs.scripts.build = "sphinx-build -b html docs docs/_build/html -W {args}"
63-
envs.docs.scripts.open = "python -m webbrowser {args:docs/_build/html/index.html}"
6465
envs.docs.scripts.clean = "git clean -fdX -- {args:docs}"
6566
envs.docs.scripts.install-kernel = "python -m ipykernel install --user --name=hv-anndata --display-name=hv-anndata"
67+
envs.docs.scripts.open = "python -m webbrowser {args:docs/_build/html/index.html}"
6668
envs.docs.dependency-groups = [ "docs" ]
6769
envs.hatch-test.dependency-groups = [ "test" ]
68-
metadata.hooks.docstring-description = {}
69-
version.source = "vcs"
7070

7171
[tool.uv]
7272
# needs anndata >=0.13.dev0 which has no releases yet
@@ -130,12 +130,12 @@ lint.pylint.max-positional-args = 4
130130
lint.pydoclint.ignore-one-line-docstrings = true
131131

132132
[tool.pytest]
133-
strict = true
134133
addopts = [ "--import-mode=importlib", "--strict-markers" ]
135134
filterwarnings = [
136135
"error",
137136
# add ignore filters here if something fails in 3rd party dependencies
138137
]
138+
strict = true
139139

140140
[tool.coverage]
141141
run.branch = true

tests/conftest.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@ def _renderer(backend: str) -> Iterator[Renderer]:
3131
renderer = hv.renderer(backend)
3232
old_backend = hv.Store.current_backend
3333
hv.Store.set_current_backend(backend)
34-
yield renderer
35-
hv.Store.set_current_backend(old_backend)
34+
try:
35+
yield renderer
36+
finally:
37+
hv.Store.set_current_backend(old_backend)
3638

3739

3840
@pytest.fixture

0 commit comments

Comments
 (0)