From c4371cf3e79f076ea5e1fa5c3391fba63227f9da Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 12 Jul 2026 10:39:13 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/python/test_cross_platform_parity.py | 6 +++--- tests/python/test_install_python_stack.py | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/python/test_cross_platform_parity.py b/tests/python/test_cross_platform_parity.py index e7f5a2441f..0b6162dcff 100644 --- a/tests/python/test_cross_platform_parity.py +++ b/tests/python/test_cross_platform_parity.py @@ -492,9 +492,9 @@ class TestPinnedRocmLeafDigitParity: "-like 'rocm*' glob) so custom find-links leaves stay on the verbatim path" ) pinned_block = text[text.find("$_pinGfx211 = Test-RocmGfx211Leaf") :][:2000] - assert "-like 'rocm*'" not in pinned_block, ( - "setup.ps1 pinned reroute must not route on a bare -like 'rocm*' glob" - ) + assert ( + "-like 'rocm*'" not in pinned_block + ), "setup.ps1 pinned reroute must not route on a bare -like 'rocm*' glob" def test_install_sh_repairable_requires_rocm_digit(self): text = INSTALL_SH.read_text(encoding = "utf-8") diff --git a/tests/python/test_install_python_stack.py b/tests/python/test_install_python_stack.py index 6a6db4abb3..b47276e173 100644 --- a/tests/python/test_install_python_stack.py +++ b/tests/python/test_install_python_stack.py @@ -239,5 +239,7 @@ class TestPinnedIndexClearsUvEnv: """UV_TORCH_BACKEND is stripped for pinned commands so uv cannot read it from the environment and reroute torch off the pinned index.""" with mock.patch.dict(os.environ, {"UV_TORCH_BACKEND": "cpu"}): - env = ips._install_env_for_cmd(["uv", "pip", "install", "torch", "--index-url", "https://x/cu128"]) + env = ips._install_env_for_cmd( + ["uv", "pip", "install", "torch", "--index-url", "https://x/cu128"] + ) assert env is not None and "UV_TORCH_BACKEND" not in env