fix(reading): hold Niryaana Shoola and drop the root helper
The two upstream files stay verbatim in scripts/. The path helper moved into a subdirectory so the root file budget rises by only those two. Niryaana Shoola is a placeholder until its rule is corrected. Targeted tests passed. Co-Authored-By: Grok (agent loop) Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Grok (agent loop)
Cursor
parent
a0122251be
commit
2130682d43
@@ -11,8 +11,18 @@ SCRIPTS = ROOT / "scripts"
|
||||
# Measured at the end of TASK-python-hygiene-20261013. New silent handlers
|
||||
# must log or carry ``# noqa: BLE001`` with a reason. New research scripts
|
||||
# belong in scripts/audit or scripts/research.
|
||||
SILENT_EXCEPT_BUDGET = 0
|
||||
ROOT_PY_BUDGET = 446
|
||||
# 原值:0
|
||||
# 新值:1
|
||||
# 原因:产品 2026-10-18(issue #81 选 A)要求 classical_astrology.py 保持上游原文。
|
||||
# 其中 scripts/classical_astrology.py:12558 是 except Exception: continue。本单不得改这个文件。
|
||||
# 本地新写的静默处理仍不得出现;允许的命中只有这一处。
|
||||
SILENT_EXCEPT_BUDGET = 1
|
||||
UPSTREAM_SILENT_EXCEPT = "scripts/classical_astrology.py:12558"
|
||||
# 原值:446
|
||||
# 新值:448
|
||||
# 原因:产品 2026-10-18(issue #81 选 A):上游原样文件按上游路径放在 scripts/ 根目录,
|
||||
# classical_astrology.py、unified_western_reading.py 两个;本地新写的文件仍不得增加。
|
||||
ROOT_PY_BUDGET = 448
|
||||
|
||||
|
||||
def _silent_handlers() -> list[str]:
|
||||
@@ -45,6 +55,7 @@ def _silent_handlers() -> list[str]:
|
||||
|
||||
def test_silent_except_budget_does_not_grow() -> None:
|
||||
hits = _silent_handlers()
|
||||
assert hits == [UPSTREAM_SILENT_EXCEPT]
|
||||
assert len(hits) <= SILENT_EXCEPT_BUDGET, hits
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user