style: auto-fix ruff warnings [skip ci]

This commit is contained in:
github-actions[bot]
2026-05-17 16:44:53 +00:00
parent 1908cf91c4
commit 280f88e0d9
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -1682,7 +1682,7 @@ def style_sweep( # noqa: PLR0915
except typer.Exit as ex: except typer.Exit as ex:
res["duration_sec"] = round(time.perf_counter() - start, 2) res["duration_sec"] = round(time.perf_counter() - start, 2)
res["error"] = f"generate exited with code {ex.exit_code}" res["error"] = f"generate exited with code {ex.exit_code}"
except Exception as ex: # noqa: BLE001 except Exception as ex:
res["duration_sec"] = round(time.perf_counter() - start, 2) res["duration_sec"] = round(time.perf_counter() - start, 2)
res["error"] = str(ex) res["error"] = str(ex)
return res return res
@@ -1735,7 +1735,7 @@ def style_sweep( # noqa: PLR0915
idx, _entry, _res, _out_path = task idx, _entry, _res, _out_path = task
try: try:
res = fut.result() res = fut.result()
except Exception as ex: # noqa: BLE001 except Exception as ex:
# Pathological — _run_one is supposed to catch everything. # Pathological — _run_one is supposed to catch everything.
# Re-build a result dict so the manifest is still well-formed. # Re-build a result dict so the manifest is still well-formed.
res = { res = {
+2 -2
View File
@@ -619,7 +619,7 @@ def test_parallel_queue_manifest_preserves_source_order(
out.write_bytes(b"png") out.write_bytes(b"png")
calls.append(kwargs) calls.append(kwargs)
import tensors.cli as cli_module # noqa: PLC0415 import tensors.cli as cli_module
cli_module._run_generation = staggered_fake # type: ignore[assignment] cli_module._run_generation = staggered_fake # type: ignore[assignment]
@@ -694,7 +694,7 @@ def test_parallel_queue_continues_after_individual_failure(
out.write_bytes(b"png") out.write_bytes(b"png")
calls.append(kwargs) calls.append(kwargs)
import tensors.cli as cli_module # noqa: PLC0415 import tensors.cli as cli_module
cli_module._run_generation = selective_fail # type: ignore[assignment] cli_module._run_generation = selective_fail # type: ignore[assignment]