Skip to content

Commit e8dc05d

Browse files
ci: pre-commit autoupdate (#3985)
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 b1e7c59 commit e8dc05d

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ci:
33

44
repos:
55
- repo: https://github.com/astral-sh/ruff-pre-commit
6-
rev: v0.15.1
6+
rev: v0.15.2
77
hooks:
88
- id: ruff-check
99
args: ["--fix"]
@@ -20,11 +20,11 @@ repos:
2020
- --sort-by-bibkey
2121
- --drop=abstract
2222
- repo: https://github.com/biomejs/pre-commit
23-
rev: v2.3.15
23+
rev: v2.4.4
2424
hooks:
2525
- id: biome-format
2626
- repo: https://github.com/tox-dev/pyproject-fmt
27-
rev: v2.16.0
27+
rev: v2.16.2
2828
hooks:
2929
- id: pyproject-fmt
3030
- repo: https://github.com/pre-commit/pre-commit-hooks

docs/conf.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from datetime import datetime
99
from functools import partial
1010
from importlib.metadata import version as get_version
11+
from itertools import product
1112
from pathlib import Path, PurePosixPath
1213
from typing import TYPE_CHECKING
1314

@@ -263,7 +264,10 @@ def setup(app: Sphinx) -> None:
263264
# https://github.com/pandas-dev/pandas/issues/63810
264265
"pandas.api.typing.aliases.AnyArrayLike": ("doc", "pandas:reference/aliases"),
265266
"numpy.bool_": "numpy.bool", # Since numpy 2, numpy.bool is the canonical dtype
266-
"numpy.typing.ArrayLike": ("py:data", "numpy.typing.ArrayLike"),
267+
**{
268+
f"numpy.{prefix}typing.{name}": ("py:data", f"numpy.typing.{name}")
269+
for name, prefix in product(["ArrayLike", "DTypeLike"], ["", "_"])
270+
},
267271
}
268272

269273
nitpick_ignore = [

hatch.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ overrides.matrix.deps.env-vars = [
3030
overrides.matrix.deps.pre-install-commands = [
3131
{ if = [
3232
"low-vers",
33-
], value = "uv run ci/scripts/low-vers.py pyproject.toml --all-extras --all-groups -o ci/scanpy-low-vers.txt" },
33+
], value = "uv run ci/scripts/low-vers.py pyproject.toml --all-extras --groups=test -o ci/scanpy-low-vers.txt" },
3434
]
3535
overrides.matrix.deps.python = [
3636
{ if = [ "low-vers" ], value = "3.12" },

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ doc = [
120120
"myst-nb>=1",
121121
"myst-parser>=2",
122122
"nbsphinx>=0.9",
123+
"numpy>=2.4", # type aliases
123124
"sam-algorithm",
124125
# TODO: remove necessity for being able to import doc-linked classes
125126
"scanpy[dask-ml,leiden,paga,plotting]",

0 commit comments

Comments
 (0)