Skip to content

Commit 3d21953

Browse files
ci: pre-commit autoupdate (#143)
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 5601ef7 commit 3d21953

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

.pre-commit-config.yaml

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- id: trailing-whitespace
77
- id: no-commit-to-branch
88
- repo: https://github.com/astral-sh/ruff-pre-commit
9-
rev: v0.14.5
9+
rev: v0.14.8
1010
hooks:
1111
- id: ruff-check
1212
args: [--fix, --exit-non-zero-on-fix]
@@ -18,15 +18,15 @@ repos:
1818
hooks:
1919
- id: pyproject-fmt
2020
- repo: https://github.com/biomejs/pre-commit
21-
rev: v2.3.5
21+
rev: v2.3.8
2222
hooks:
2323
- id: biome-format
2424
- repo: https://github.com/H4rryK4ne/update-mypy-hook
25-
rev: a8b56c4055ff0c7c589794c02813ef8e9d5704fc
25+
rev: v0.3.0
2626
hooks:
2727
- id: update-mypy-hook
2828
- repo: https://github.com/pre-commit/mirrors-mypy
29-
rev: v1.18.2
29+
rev: v1.19.0
3030
hooks:
3131
- id: mypy
3232
args: [--config-file=pyproject.toml, .]
@@ -43,12 +43,12 @@ repos:
4343
- click==8.3.1
4444
- cloudpickle==3.1.2
4545
- colorama==0.4.6 ; sys_platform == 'win32'
46-
- coverage==7.12.0
46+
- coverage==7.13.0
4747
- dask==2025.11.0
4848
- docutils==0.22.3
4949
- donfig==0.8.1.post1
5050
- execnet==2.1.2
51-
- fsspec==2025.10.0
51+
- fsspec==2025.12.0
5252
- google-crc32c==1.7.1
5353
- h5py==3.15.1
5454
- idna==3.11
@@ -57,24 +57,24 @@ repos:
5757
- jinja2==3.1.6
5858
- joblib==1.5.2
5959
- legacy-api-wrap==1.5
60-
- llvmlite==0.45.1
60+
- llvmlite==0.46.0
6161
- locket==1.0.0
6262
- markdown-it-py==4.0.0
6363
- markupsafe==3.0.3
6464
- mdurl==0.1.2
6565
- natsort==8.4.0
66-
- numba==0.62.1
66+
- numba==0.63.1
6767
- numcodecs==0.16.5
6868
- numpy==2.3.5
69-
- numpy-typing-compat==20250818.2.3
70-
- optype==0.14.0
69+
- numpy-typing-compat==20251206.2.3
70+
- optype==0.15.0
7171
- packaging==25.0
7272
- pandas==2.3.3
7373
- partd==1.4.2
7474
- pluggy==1.6.0
7575
- pycparser==2.23 ; implementation_name != 'PyPy'
7676
- pygments==2.19.2
77-
- pytest==9.0.1
77+
- pytest==9.0.2
7878
- pytest-codspeed==4.2.0
7979
- pytest-doctestplus==1.6.0
8080
- pytest-xdist==3.8.0
@@ -84,12 +84,12 @@ repos:
8484
- requests==2.32.5
8585
- rich==14.2.0
8686
- roman-numerals==3.1.0
87-
- scikit-learn==1.7.2
87+
- scikit-learn==1.8.0
8888
- scipy==1.16.3
89-
- scipy-stubs==1.16.3.2
89+
- scipy-stubs==1.16.3.3
9090
- six==1.17.0
9191
- snowballstemmer==3.0.1
92-
- sphinx==9.0.1
92+
- sphinx==9.0.4
9393
- sphinxcontrib-applehelp==2.0.0
9494
- sphinxcontrib-devhelp==2.0.0
9595
- sphinxcontrib-htmlhelp==2.1.0
@@ -100,9 +100,10 @@ repos:
100100
- toolz==1.1.0
101101
- types-docutils==0.22.3.20251115
102102
- tzdata==2025.2
103-
- urllib3==2.5.0
103+
- urllib3==2.6.1
104104
- zarr==3.1.5
105105
ci:
106+
autoupdate_commit_msg: 'ci: pre-commit autoupdate'
106107
skip:
107108
- mypy # too big
108109
- update-mypy-hook # offline?

src/testing/fast_array_utils/_array_type.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -243,15 +243,14 @@ def _to_dask_array(self, x: ArrayLike | Array, /, *, dtype: DTypeLike | None = N
243243
import dask.array as da
244244

245245
assert self.inner is not None
246-
if TYPE_CHECKING:
247-
assert isinstance(self.inner, ArrayType[CpuArray | GpuArray, None]) # type: ignore[misc]
246+
inner = cast("ArrayType[CpuArray | GpuArray, None]", self.inner)
248247

249248
if isinstance(x, types.DaskArray):
250-
if isinstance(x._meta, self.inner.cls): # noqa: SLF001
249+
if isinstance(x._meta, inner.cls): # noqa: SLF001
251250
return x
252-
return x.map_blocks(self.inner, dtype=dtype, meta=self.inner([[1]], dtype=dtype or x.dtype))
251+
return x.map_blocks(inner, dtype=dtype, meta=inner([[1]], dtype=dtype or x.dtype))
253252

254-
arr = self.inner(x, dtype=dtype)
253+
arr = inner(x, dtype=dtype)
255254
return da.from_array(arr, _half_chunk_size(arr.shape))
256255

257256
def _to_h5py_dataset(self, x: ArrayLike | Array, /, *, dtype: DTypeLike | None = None) -> types.H5Dataset:

0 commit comments

Comments
 (0)