From 4dfcdeb156698a2c6ef0a9a5267d863596a793ce Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 1 Jul 2026 10:29:39 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/saving/test_llm_compressor_install_pin.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/saving/test_llm_compressor_install_pin.py b/tests/saving/test_llm_compressor_install_pin.py index f222f0d222..c2ddfb14e2 100644 --- a/tests/saving/test_llm_compressor_install_pin.py +++ b/tests/saving/test_llm_compressor_install_pin.py @@ -54,8 +54,12 @@ def test_ceiling_blocks_inflated_versions() -> None: assert spec.contains("0.12.0"), "the current vetted release must resolve" assert not spec.contains("0.999.0"), "an inflated 0.x must be blocked" assert not spec.contains("1.0.0"), "a new major must not be auto-installed" - assert not spec.contains("0.12.1"), "a higher in-range patch must be blocked (cap to the vetted patch)" - assert not spec.contains("0.12.999"), "a crafted higher in-range patch (e.g. on a mirror) must be blocked" + assert not spec.contains( + "0.12.1" + ), "a higher in-range patch must be blocked (cap to the vetted patch)" + assert not spec.contains( + "0.12.999" + ), "a crafted higher in-range patch (e.g. on a mirror) must be blocked" def test_floor_stays_compatible_with_supported_torch() -> None: