style(521): lint/type cleanup on decisions_lib parser + test

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-21 02:58:58 +02:00
co-authored by Claude Opus 4.8
parent ba39ca65ae
commit 2cd78aa0bf
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -13,6 +13,7 @@ block as its first non-blank content:
An H2 with no metadata line is treated as status `legacy-unmigrated` (migration target).
"""
from __future__ import annotations
import re
+3
View File
@@ -1,4 +1,5 @@
from pathlib import Path
import scripts.decisions_lib as dl
FIX = Path(__file__).parent / "fixtures" / "sample_decisions.md"
@@ -14,7 +15,9 @@ def test_parses_migrated_record():
assert r.supersedes == "none"
assert r.superseded_by == "none"
assert r.rule == "Every CI services container gets an explicit cap."
assert r.signals is not None
assert "issues: #390 #406" in r.signals
assert r.mechanics is not None
assert r.mechanics.startswith("docs/ci-cd.md")