From a0fbe51e7d2f92471f16216df5fe8a32e5aa6c47 Mon Sep 17 00:00:00 2001 From: Jer Miller Date: Fri, 31 Jul 2026 20:08:35 -0600 Subject: [PATCH] style(spl): format the health-vocabulary gate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Caught by the repository formatting gate — the same step that caught the forwarding test. Behaviour unchanged; re-verified green against both sources after reformatting. --- scripts/check_spl_health_vocabulary.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/scripts/check_spl_health_vocabulary.py b/scripts/check_spl_health_vocabulary.py index 917ab08e7..be4e50a1c 100644 --- a/scripts/check_spl_health_vocabulary.py +++ b/scripts/check_spl_health_vocabulary.py @@ -78,9 +78,10 @@ def _python_offline_set(path: Path) -> set[str] | None: def _rust_vocabulary(path: Path) -> dict[str, str]: - return {m.group("name"): m.group("value") for m in _RS_CONST.finditer( - path.read_text(encoding="utf-8") - )} + return { + m.group("name"): m.group("value") + for m in _RS_CONST.finditer(path.read_text(encoding="utf-8")) + } def _rust_offline_set(path: Path, rust: dict[str, str]) -> set[str] | None: @@ -117,9 +118,13 @@ def check(root: Path, py_rel: str, rs_rel: str) -> list[str]: rs_reasons = {v for k, v in rs.items() if k.startswith("REASON_")} if not py_reasons: - problems.append(f"{py_rel}: no REASON_* constants found — the gate is not reading it") + problems.append( + f"{py_rel}: no REASON_* constants found — the gate is not reading it" + ) if not rs_reasons: - problems.append(f"{rs_rel}: no REASON_* constants found — the gate is not reading it") + problems.append( + f"{rs_rel}: no REASON_* constants found — the gate is not reading it" + ) if problems: return problems -- 2.51.2