Rewrite leftover analysis modules imported by src.

validate/validation_tools alias native lookup and review tools. Passive
resolve, derating, BOM summary, pin-mux, LED current, and net-function
tokens are original Periscope code. finding_engine and pcb_* unchanged.
This commit is contained in:
2026-09-20 19:14:20 +02:00
parent 3d7fa21eb6
commit 82ffa755cd
9 changed files with 1037 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
"""Prove leftover analysis modules live in periscope/src."""
from __future__ import annotations
from pathlib import Path
def test_analysis_leftovers_are_src():
import backend.periscopex.validate as v
import backend.periscopex.validation_tools as vt
import backend.periscopex.resolve_passives as rp
import backend.periscopex.derating as d
import backend.periscopex.bom_summary as bs
import backend.periscopex.pin_mux_check as mux
import backend.periscopex.led_current_check as led
import backend.periscopex.pin_function_tokens as tok
for mod in (v, vt, rp, d, bs, mux, led, tok):
parts = Path(mod.__file__).resolve().parts
assert "src" in parts
assert "dependency" not in parts[-6:]