From ff074472fde2779a458c405c562f1dc52bfa8969 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 19 Jul 2026 12:05:53 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- studio/backend/tests/test_update_contract.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/studio/backend/tests/test_update_contract.py b/studio/backend/tests/test_update_contract.py index 6b5009fb79..d6fd0ffe2c 100644 --- a/studio/backend/tests/test_update_contract.py +++ b/studio/backend/tests/test_update_contract.py @@ -344,9 +344,7 @@ def _load_real_llama_cpp_update(): production names.""" def _load(mod_name: str, filename: str): - spec = importlib.util.spec_from_file_location( - mod_name, str(_BACKEND / "utils" / filename) - ) + spec = importlib.util.spec_from_file_location(mod_name, str(_BACKEND / "utils" / filename)) mod = importlib.util.module_from_spec(spec) sys.modules[mod_name] = mod spec.loader.exec_module(mod) @@ -375,9 +373,7 @@ def _stub_marker_update(monkeypatch, lcu, *, resolved_latest: str): "asset": "cuda-x64.zip", }, ) - monkeypatch.setattr( - lcu, "_installer_script", lambda: Path("/fake/install_llama_prebuilt.py") - ) + monkeypatch.setattr(lcu, "_installer_script", lambda: Path("/fake/install_llama_prebuilt.py")) monkeypatch.setattr(lcu, "_install_dir_for", lambda binary: Path("/llama.cpp/build")) monkeypatch.setattr( lcu, @@ -416,7 +412,14 @@ def test_start_update_proceeds_when_resolved_latest_matches_confirmed(monkeypatc spawned: dict = {} class _CapturingThread: - def __init__(self, *, target = None, args = (), name = None, daemon = None): + def __init__( + self, + *, + target = None, + args = (), + name = None, + daemon = None, + ): spawned["args"] = args def start(self):