From 5c7c0e951cda879d6606850406b98ce8832ef812 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Sun, 26 Jul 2026 12:54:10 +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_scoped_download_job.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/studio/backend/tests/test_scoped_download_job.py b/studio/backend/tests/test_scoped_download_job.py index b140c38684..d72489154a 100644 --- a/studio/backend/tests/test_scoped_download_job.py +++ b/studio/backend/tests/test_scoped_download_job.py @@ -123,9 +123,7 @@ def test_scoped_files_survive_into_the_registry(monkeypatch): assert captured["scoped_files"] == FILES metadata = dl._registry.get_job_metadata( - dl._download_job_key( - "black-forest-labs/FLUX.1-dev", dl._scope_variant("diffusion", FILES) - ) + dl._download_job_key("black-forest-labs/FLUX.1-dev", dl._scope_variant("diffusion", FILES)) ) assert metadata is not None and list(metadata.scoped_files) == FILES @@ -147,9 +145,11 @@ def test_scope_keys_differ_per_requested_file_set(): assert a != b assert a.startswith("@diffusion-") and b.startswith("@diffusion-") # Order and duplicates must not change the identity (the same set is the same job). - assert a == dl._scope_variant("diffusion", ["ae.safetensors", "flux1-dev-Q4_K_M.gguf", - "flux1-dev-Q4_K_M.gguf"]) + assert a == dl._scope_variant( + "diffusion", ["ae.safetensors", "flux1-dev-Q4_K_M.gguf", "flux1-dev-Q4_K_M.gguf"] + ) # A scope with no files keeps the bare form, and stays valid as a variant slot. from hub.utils.paths import is_valid_gguf_variant + assert dl._scope_variant("video", []) == "@video" assert is_valid_gguf_variant(a) and is_valid_gguf_variant("@video")