[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-07-28 18:04:00 +00:00
commit 917c939bc8

View file

@ -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