ruff: format pass on S01 changes
- SHA
649d880216db65a1e8fd0e44caff1eec7e890961- Parents
-
c84ab47 - Tree
509df03
649d880
649d880216db65a1e8fd0e44caff1eec7e890961c84ab47
509df03| Status | File | + | - |
|---|---|---|---|
| M |
src/dlm_sway/probes/_divergence.py
|
1 | 2 |
| M |
src/dlm_sway/suite/runner.py
|
1 | 2 |
| M |
tests/integration/test_nan_adapter_regression.py
|
1 | 3 |
src/dlm_sway/probes/_divergence.pymodified@@ -117,8 +117,7 @@ def _check_finite_array(name: str, arr: NDArray[np.float64]) -> None: | ||
| 117 | 117 | n_bad = int(np.sum(~np.isfinite(arr))) |
| 118 | 118 | raise ProbeError( |
| 119 | 119 | "divergence", |
| 120 | - f"{name} contains {n_bad} non-finite entry/entries — " | |
| 121 | - f"refusing to compute divergence", | |
| 120 | + f"{name} contains {n_bad} non-finite entry/entries — refusing to compute divergence", | |
| 122 | 121 | ) |
| 123 | 122 | |
| 124 | 123 | |
src/dlm_sway/suite/runner.pymodified@@ -77,8 +77,7 @@ def run( | ||
| 77 | 77 | verdict=Verdict.ERROR, |
| 78 | 78 | score=None, |
| 79 | 79 | message=( |
| 80 | - f"backend preflight failed — suite aborted before any " | |
| 81 | - f"probe ran. {reason}" | |
| 80 | + f"backend preflight failed — suite aborted before any probe ran. {reason}" | |
| 82 | 81 | ), |
| 83 | 82 | duration_s=duration, |
| 84 | 83 | evidence={"preflight_reason": reason}, |
tests/integration/test_nan_adapter_regression.pymodified@@ -91,9 +91,7 @@ def test_nan_adapter_on_disk_is_reproducibly_nan(nan_adapter: Path) -> None: | ||
| 91 | 91 | assert at_least_one_nan, "no lora_A/lora_B tensors found — adapter structure unexpected" |
| 92 | 92 | |
| 93 | 93 | |
| 94 | -def test_hf_backend_preflight_rejects_nan_adapter( | |
| 95 | - tiny_model_dir: Path, nan_adapter: Path | |
| 96 | -) -> None: | |
| 94 | +def test_hf_backend_preflight_rejects_nan_adapter(tiny_model_dir: Path, nan_adapter: Path) -> None: | |
| 97 | 95 | """The HF backend's preflight catches the NaN adapter at construction time. |
| 98 | 96 | |
| 99 | 97 | Before S01 this ran to completion and produced JS = 13.247 nats. |