23 lines
543 B
Python
23 lines
543 B
Python
#!/usr/bin/env python3
|
|
import py_compile
|
|
import sys
|
|
from pathlib import Path
|
|
|
|
files = [
|
|
"replies/q60_truncated_census.py",
|
|
"replies/q93_axis_negative_probe.py",
|
|
"replies/test_jsonl_validate.py",
|
|
"tools/inspect_tree.py",
|
|
]
|
|
|
|
for rel in files:
|
|
p = Path(rel)
|
|
try:
|
|
py_compile.compile(str(p), doraise=True)
|
|
health = "ready"
|
|
except Exception as e:
|
|
health = "broken"
|
|
lines = sum(1 for _ in p.open(encoding="utf-8"))
|
|
bytes_ = p.stat().st_size
|
|
print(f"{rel}\t{health}\t{lines}\t{bytes_}")
|