[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-27 08:15:34 +00:00
commit 4719f1a9a6
3 changed files with 5 additions and 9 deletions

View file

@ -1032,9 +1032,7 @@ class VideoBackend:
if cancel.is_set():
raise RuntimeError(VIDEO_CANCELLED_MSG)
local = Path(
hf_hub_download_with_xet_fallback(
base, name, hf_token, cancel_event = cancel
)
hf_hub_download_with_xet_fallback(base, name, hf_token, cancel_event = cancel)
)
if name == "model_index.json":
snapshot_root = local.parent

View file

@ -1851,6 +1851,6 @@ def test_cached_repo_task_agrees_with_the_image_loader(monkeypatch):
loader_accepts = True
except (ValueError, FileNotFoundError, RuntimeError):
loader_accepts = False
assert (task == "text-to-image") == loader_accepts, (
f"{repo_id}: picker task={task} but loader accepts={loader_accepts}"
)
assert (
task == "text-to-image"
) == loader_accepts, f"{repo_id}: picker task={task} but loader accepts={loader_accepts}"

View file

@ -1973,8 +1973,6 @@ def test_route_rejects_cond_cache_dir_for_sdxl(client):
assert Path(client._fake.started_with["cond_cache_dir"]).is_absolute()
# And omitting it stays off (the trainer's in-memory default), not resolved to the outputs root.
r = client.post(
"/api/train/diffusion/start", json = {**_BODY, "model_family": "sdxl"}
)
r = client.post("/api/train/diffusion/start", json = {**_BODY, "model_family": "sdxl"})
assert r.status_code == 200, r.text
assert client._fake.started_with["cond_cache_dir"] is None