From f757e68dacd8a1e6084d78527e77849819cfdcd1 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 8 Jul 2026 08:31:19 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_torch2110_cuda_extras.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_torch2110_cuda_extras.py b/tests/test_torch2110_cuda_extras.py index 4a632e1407..c110bad682 100644 --- a/tests/test_torch2110_cuda_extras.py +++ b/tests/test_torch2110_cuda_extras.py @@ -43,9 +43,9 @@ def test_cuda12_torch2110_pins_matching_local_build(cuda: str): reqs = _reqs(_extra(f"{cuda}onlytorch2110")) for pkg in _TORCH_TRIO: spec = str(reqs[pkg].specifier) - assert spec == f"=={('2.11.0' if pkg != 'torchvision' else '0.26.0')}+{cuda}", ( - f"{cuda}onlytorch2110: {pkg} pinned as '{spec}', expected the +{cuda} local build" - ) + assert ( + spec == f"=={('2.11.0' if pkg != 'torchvision' else '0.26.0')}+{cuda}" + ), f"{cuda}onlytorch2110: {pkg} pinned as '{spec}', expected the +{cuda} local build" # xformers must come from the same CUDA index. xf = reqs["xformers"] assert xf.url and f"/whl/{cuda}/" in xf.url, f"xformers not on the {cuda} index: {xf.url}"