From bd99405dac05d5f216edfaaa992d8824a76776bf Mon Sep 17 00:00:00 2001 From: Daniel Ari Friedman Date: Fri, 6 Nov 2026 12:28:47 -0800 Subject: [PATCH] Collapse the nested evidence conditionals ruff flags (SIM102) The gate battery is green at this commit: ruff check/format, mypy src, pytest 982 passed at 90.99% coverage, and the pinned GNN conformance gate with GNN_ROOT set. The claim_support audit output is byte-identical (behavior-preserving). --- src/manuscript/claim_support.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/manuscript/claim_support.py b/src/manuscript/claim_support.py index 314d823..b83c70e 100644 --- a/src/manuscript/claim_support.py +++ b/src/manuscript/claim_support.py @@ -495,12 +495,10 @@ def _audit_evidence( issues.append( f"{location}: {row.claim_id} scope_limit lacks limitation marker" ) - elif row.claim_type == "delivery": - if not row.validators: - issues.append(f"{location}: {row.claim_id} delivery row needs validators") - elif row.claim_type == "visual": - if not row.figures: - issues.append(f"{location}: {row.claim_id} visual row needs figures") + elif row.claim_type == "delivery" and not row.validators: + issues.append(f"{location}: {row.claim_id} delivery row needs validators") + elif row.claim_type == "visual" and not row.figures: + issues.append(f"{location}: {row.claim_id} visual row needs figures") return issues