From 917c939bc816d95495d024240aff9cccc0feb464 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 18:04:00 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/studio/test_model_picker_contracts.py | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tests/studio/test_model_picker_contracts.py b/tests/studio/test_model_picker_contracts.py index 854476d5ef..255949cb92 100644 --- a/tests/studio/test_model_picker_contracts.py +++ b/tests/studio/test_model_picker_contracts.py @@ -879,9 +879,7 @@ def test_backfill_splits_a_quant_suffix_the_way_the_backend_does(): filename were read as quant separators: `/models/foo:Bar.gguf` and `/models/foo:bar.gguf` folded to one key, and whichever was already on the server made the other look migrated.""" - identity = " ".join( - _read("features/model-picker/model-config/model-identity.ts").split() - ) + identity = " ".join(_read("features/model-picker/model-config/model-identity.ts").split()) assert "export function splitQuantSuffix(" in identity # The two rules that keep a path out: no separator in the tail, and a head # that is not a .gguf cannot carry a free-form label. @@ -899,9 +897,9 @@ def test_backfill_splits_a_quant_suffix_the_way_the_backend_does(): assert "_BPW_SUFFIX" in backend and "bpw" in identity # Both sides accept the same quant vocabulary. The regex itself lives with # the loader that reads the filenames. - quants = ( - WORKDIR / "studio" / "backend" / "core" / "inference" / "llama_cpp.py" - ).read_text(encoding = "utf-8") + quants = (WORKDIR / "studio" / "backend" / "core" / "inference" / "llama_cpp.py").read_text( + encoding = "utf-8" + ) for token in ("MXFP", "IQ", "TQ", "BF16", "F16", "F32"): assert token in quants and token in identity, token @@ -913,4 +911,4 @@ def test_the_detail_card_also_gates_ollama_out_of_the_api_promise(): hub = " ".join(_read("features/hub/hub-page.tsx").split()) assert hub.count("LOCAL_MODEL_SOURCE.OLLAMA") == 2 assert "selectedModel.localSource !== LOCAL_MODEL_SOURCE.OLLAMA" in hub - assert 'row.source !== LOCAL_MODEL_SOURCE.OLLAMA' in hub + assert "row.source !== LOCAL_MODEL_SOURCE.OLLAMA" in hub