sway: ruff format pass
- SHA
bfe1985d56a0401fe7a1477eb7e0cd92dac9ce27- Parents
-
228d404 - Tree
68fe58b
bfe1985
bfe1985d56a0401fe7a1477eb7e0cd92dac9ce27228d404
68fe58b| Status | File | + | - |
|---|---|---|---|
| M |
src/dlm_sway/probes/leakage.py
|
0 | 1 |
| M |
tests/integration/test_hf_adapter_toggle.py
|
2 | 6 |
src/dlm_sway/probes/leakage.pymodified@@ -24,7 +24,6 @@ from pydantic import Field | ||
| 24 | 24 | from dlm_sway.core.result import ProbeResult, Verdict |
| 25 | 25 | from dlm_sway.probes.base import Probe, ProbeSpec, RunContext |
| 26 | 26 | |
| 27 | - | |
| 28 | 27 | PerturbationKind = Literal["typo", "case_flip", "drop_punct"] |
| 29 | 28 | |
| 30 | 29 | |
tests/integration/test_hf_adapter_toggle.pymodified@@ -68,9 +68,7 @@ def random_adapter(tiny_model_dir: Path, tmp_path_factory: pytest.TempPathFactor | ||
| 68 | 68 | return adapter_dir |
| 69 | 69 | |
| 70 | 70 | |
| 71 | -def test_disable_adapter_changes_logits( | |
| 72 | - tiny_model_dir: Path, random_adapter: Path | |
| 73 | -) -> None: | |
| 71 | +def test_disable_adapter_changes_logits(tiny_model_dir: Path, random_adapter: Path) -> None: | |
| 74 | 72 | """The keystone invariant: base view ≠ ft view on the same prompt.""" |
| 75 | 73 | import numpy as np |
| 76 | 74 | |
@@ -94,9 +92,7 @@ def test_disable_adapter_changes_logits( | ||
| 94 | 92 | backend.close() |
| 95 | 93 | |
| 96 | 94 | |
| 97 | -def test_roundtrip_toggle_restores_base( | |
| 98 | - tiny_model_dir: Path, random_adapter: Path | |
| 99 | -) -> None: | |
| 95 | +def test_roundtrip_toggle_restores_base(tiny_model_dir: Path, random_adapter: Path) -> None: | |
| 100 | 96 | """as_base → as_finetuned → as_base yields a stable base view.""" |
| 101 | 97 | import numpy as np |
| 102 | 98 | |