From 54147ddedcc67482731d795a371f9b7c1cf2aecf Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 28 Jul 2026 05:44:09 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/python/test_amd_extras_contract.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/python/test_amd_extras_contract.py b/tests/python/test_amd_extras_contract.py index 1b9f615491..806f8dd49c 100644 --- a/tests/python/test_amd_extras_contract.py +++ b/tests/python/test_amd_extras_contract.py @@ -73,10 +73,10 @@ class TestAmdBitsandbytesFloor: assert specs, "the amd extra must pin bitsandbytes" for spec in specs: requirement = spec.split(";", 1)[0].strip() - allowed = SpecifierSet(requirement[len("bitsandbytes"):].strip()) - assert not allowed.contains(Version("0.49.2")), ( - f"{requirement} still admits bnb 0.49.2, which NaNs at decode shape on AMD" - ) + allowed = SpecifierSet(requirement[len("bitsandbytes") :].strip()) + assert not allowed.contains( + Version("0.49.2") + ), f"{requirement} still admits bnb 0.49.2, which NaNs at decode shape on AMD" assert allowed.contains(BNB_MIN), f"{requirement} excludes the fixed release {BNB_MIN}" @@ -97,4 +97,6 @@ class TestSecurityAuditWorkflowStaysInSync: ) assert referenced, "expected security-audit.yml to index at least one extra" missing = sorted(referenced - set(_extras())) - assert not missing, f"security-audit.yml indexes extras that pyproject.toml lacks: {missing}" + assert ( + not missing + ), f"security-audit.yml indexes extras that pyproject.toml lacks: {missing}"