style(format): ruff format on the three files P7/P8 left drifting [skip-docs]

Pure formatting, no behaviour change. ruff 0.15.18 reported
"3 files would be reformatted, 195 files already formatted" on HEAD 455d611;
after this commit "198 files already formatted". Suite 1570 passed / 5 skipped
before and after, golden demo-transcript.stdout content sha1 unchanged
(ea8c534773acdbe41ae68f2c55724d69aaf8be4f).

Two of the three came from P7 (277bb95), one from P8 (455d611).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Kjell Tore Guttormsen 2026-09-10 06:23:35 +02:00
commit 2e04c00d6e
3 changed files with 7 additions and 11 deletions

View file

@ -104,8 +104,7 @@ def _project(*codes: str) -> Project:
description="",
currency="NOK",
cost_items=tuple(
CostItem(code=c, description=c, quantity=1.0, unit="stk", unit_cost=1.0)
for c in codes
CostItem(code=c, description=c, quantity=1.0, unit="stk", unit_cost=1.0) for c in codes
),
docs_dir="",
)
@ -226,9 +225,7 @@ async def test_the_full_run_carries_the_offer() -> None:
docs_dir=str(UNANCHORED),
bundle_dir=str(UNANCHORED),
verdict_input=_VERDICT_INPUT,
client_factory=scripted_factory(
{"proposer": _VALID_REPLY, "checker": _CHECKER_REPLY}, []
),
client_factory=scripted_factory({"proposer": _VALID_REPLY, "checker": _CHECKER_REPLY}, []),
)
offer = getattr(result, "grounding_offer", None)

View file

@ -47,9 +47,7 @@ def _proposal(*codes: str, unit_cost: float = 100.0) -> SavingsProposal:
return SavingsProposal(
project_id="K2",
measure="reduce marking scope",
affected_items=[
AffectedItem(code=c, quantity=10.0, unit_cost=unit_cost) for c in codes
],
affected_items=[AffectedItem(code=c, quantity=10.0, unit_cost=unit_cost) for c in codes],
claimed_saving_nok=1.0,
)
@ -74,7 +72,9 @@ def _project():
("s7c-k2-generation-prompt.txt", ("PRD-001", "PRD-002")),
],
)
def test_a_fabricated_code_from_a_real_recording_falls(fixture: str, codes: tuple[str, ...]) -> None:
def test_a_fabricated_code_from_a_real_recording_falls(
fixture: str, codes: tuple[str, ...]
) -> None:
"""(a)+(b). Both recordings' codes are absent from the prompt that produced them (denominator
2 of 2 in each), and the verdict must now fall with ``baseline=None``, which is exactly the
configuration under which økt 108 said ``validated``."""