Skip to content

Commit 2664c75

Browse files
committed
MAINT: general deps bump
1 parent 1e3614e commit 2664c75

File tree

7 files changed

+1254
-3205
lines changed

7 files changed

+1254
-3205
lines changed

Diff for: pixi.lock

+1,232-3,188
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: pyproject.toml

+16-11
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ numpy = "=1.22.0"
136136
pytorch = "*"
137137
dask = "*"
138138
numba = "*" # sparse dependency
139+
llvmlite = "*" # sparse dependency
139140

140141
[tool.pixi.feature.backends.pypi-dependencies]
141142
sparse = { version = ">= 0.16.0b3" }
@@ -166,19 +167,23 @@ cupy = "*"
166167
# jaxlib = { version = "*", build = "cuda12*" } # unavailable
167168

168169
[tool.pixi.environments]
169-
default = { solve-group = "default" }
170-
lint = { features = ["lint"], solve-group = "default" }
171-
tests = { features = ["tests"], solve-group = "default" }
172-
docs = { features = ["docs"], solve-group = "default" }
173-
dev = { features = ["lint", "tests", "docs", "dev", "backends"], solve-group = "default" }
174-
dev-cuda = { features = ["lint", "tests", "docs", "dev", "backends", "cuda-backends"] }
175-
dev-numpy1 = { features = ["lint", "tests", "dev", "numpy1"] }
170+
default = { features = ["py313"], solve-group = "py313" }
171+
lint = { features = ["py313", "lint"], solve-group = "py313" }
172+
docs = { features = ["py313", "docs"], solve-group = "py313" }
173+
tests = { features = ["py313", "tests"], solve-group = "py313" }
174+
tests-py313 = { features = ["py313", "tests"], solve-group = "py313" } # alias of tests
175+
176+
# Some backends may pin numpy; use separate solve-group
177+
dev = { features = ["py310", "lint", "tests", "docs", "dev", "backends"], solve-group = "backends" }
178+
tests-backends = { features = ["py310", "tests", "backends"], solve-group = "backends" }
179+
180+
# CUDA not available on free github actions and on some developers' PCs
181+
dev-cuda = { features = ["py310", "lint", "tests", "docs", "dev", "backends", "cuda-backends"], solve-group = "cuda" }
182+
tests-cuda = { features = ["py310", "tests", "backends", "cuda-backends"], solve-group = "cuda" }
183+
184+
# Ungrouped environments
176185
tests-numpy1 = ["py310", "tests", "numpy1"]
177186
tests-py310 = ["py310", "tests"]
178-
tests-py313 = ["py313", "tests"]
179-
# CUDA not available on free github actions and on some developers' PCs
180-
tests-backends = ["py310", "tests", "backends"]
181-
tests-cuda = ["py310", "tests", "backends", "cuda-backends"]
182187

183188

184189
# pytest

Diff for: src/array_api_extra/_lib/_lazy.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ def wrapper( # type: ignore[decorated-any,explicit-any]
338338
if as_numpy:
339339
import numpy as np
340340

341-
arg = cast(Array, np.asarray(arg)) # type: ignore[bad-cast] # noqa: PLW2901 # pyright: ignore[reportInvalidCast]
341+
arg = cast(Array, np.asarray(arg)) # type: ignore[bad-cast] # noqa: PLW2901
342342
args_list.append(arg)
343343
assert device is not None
344344

Diff for: src/array_api_extra/_lib/_testing.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def xp_assert_equal(actual: Array, desired: Array, err_msg: str = "") -> None:
106106
desired = desired.todense() # type: ignore[attr-defined] # pyright: ignore[reportAttributeAccessIssue]
107107

108108
# JAX uses `np.testing`
109-
np.testing.assert_array_equal(actual, desired, err_msg=err_msg) # type: ignore[arg-type] # pyright: ignore[reportArgumentType]
109+
np.testing.assert_array_equal(actual, desired, err_msg=err_msg) # pyright: ignore[reportUnknownArgumentType]
110110

111111

112112
def xp_assert_close(

Diff for: tests/test_at.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def test_copy_invalid():
187187

188188

189189
def test_xp():
190-
a = cast(Array, np.asarray([1, 2, 3])) # type: ignore[bad-cast] # pyright: ignore[reportInvalidCast]
190+
a = cast(Array, np.asarray([1, 2, 3])) # type: ignore[bad-cast]
191191
_ = at(a, 0).set(4, xp=np)
192192
_ = at(a, 0).add(4, xp=np)
193193
_ = at(a, 0).subtract(4, xp=np)

Diff for: tests/test_funcs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def test_device(self, xp: ModuleType, device: Device):
193193
assert get_device(y) == device
194194

195195
@pytest.mark.filterwarnings("ignore::RuntimeWarning") # overflows, etc.
196-
@hypothesis.settings( # pyright: ignore[reportArgumentType]
196+
@hypothesis.settings(
197197
# The xp and library fixtures are not regenerated between hypothesis iterations
198198
suppress_health_check=[hypothesis.HealthCheck.function_scoped_fixture],
199199
# JAX can take a long time to initialize on the first call

Diff for: tests/test_lazy.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def f(x: Array) -> Array:
136136
xp = array_namespace(x)
137137
return xp.sum(x, axis=0) + x
138138

139-
x_np = cast(Array, np.arange(15).reshape(5, 3)) # type: ignore[bad-cast] # pyright: ignore[reportInvalidCast]
139+
x_np = cast(Array, np.arange(15).reshape(5, 3)) # type: ignore[bad-cast]
140140
expect = da.asarray(f(x_np))
141141
x_da = da.asarray(x_np).rechunk(3)
142142

@@ -419,6 +419,6 @@ def f(x: Array) -> Array:
419419
with pytest.raises(ValueError, match="multiple shapes but only one dtype"):
420420
_ = lazy_apply(f, x, shape=[(1,), (2,)], dtype=np.int32) # type: ignore[call-overload] # pyright: ignore[reportCallIssue,reportArgumentType]
421421
with pytest.raises(ValueError, match="single shape but multiple dtypes"):
422-
_ = lazy_apply(f, x, shape=(1,), dtype=[np.int32, np.int64])
422+
_ = lazy_apply(f, x, shape=(1,), dtype=[np.int32, np.int64]) # pyright: ignore[reportCallIssue,reportArgumentType]
423423
with pytest.raises(ValueError, match="2 shapes and 1 dtypes"):
424424
_ = lazy_apply(f, x, shape=[(1,), (2,)], dtype=[np.int32]) # type: ignore[arg-type] # pyright: ignore[reportCallIssue,reportArgumentType]

0 commit comments

Comments
 (0)