diff --git a/tensors/cli.py b/tensors/cli.py index ba0fb93..fb5a97d 100644 --- a/tensors/cli.py +++ b/tensors/cli.py @@ -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 = { diff --git a/tests/test_style_sweep.py b/tests/test_style_sweep.py index 6781adc..7746b1a 100644 --- a/tests/test_style_sweep.py +++ b/tests/test_style_sweep.py @@ -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]