style: auto-fix ruff warnings [skip ci]
This commit is contained in:
+2
-2
@@ -1682,7 +1682,7 @@ def style_sweep( # noqa: PLR0915
|
||||
except typer.Exit as ex:
|
||||
res["duration_sec"] = round(time.perf_counter() - start, 2)
|
||||
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["error"] = str(ex)
|
||||
return res
|
||||
@@ -1735,7 +1735,7 @@ def style_sweep( # noqa: PLR0915
|
||||
idx, _entry, _res, _out_path = task
|
||||
try:
|
||||
res = fut.result()
|
||||
except Exception as ex: # noqa: BLE001
|
||||
except Exception as ex:
|
||||
# Pathological — _run_one is supposed to catch everything.
|
||||
# Re-build a result dict so the manifest is still well-formed.
|
||||
res = {
|
||||
|
||||
@@ -619,7 +619,7 @@ def test_parallel_queue_manifest_preserves_source_order(
|
||||
out.write_bytes(b"png")
|
||||
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]
|
||||
|
||||
@@ -694,7 +694,7 @@ def test_parallel_queue_continues_after_individual_failure(
|
||||
out.write_bytes(b"png")
|
||||
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]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user