feat(tt_tools): --check-docs now prints all errors

Previously, it only printed the first error it encountered, causing more iterations when fixing info.yaml and info.md errors
This commit is contained in:
Uri Shaked
2025-10-03 18:25:42 +03:00
parent bdff4ca192
commit 03ca42307f
5 changed files with 272 additions and 90 deletions
+5 -4
View File
@@ -4,6 +4,7 @@ import logging
import sys
from project import Project
from project_checks import check_project_docs
from tech import TechName
if __name__ == "__main__":
@@ -167,13 +168,13 @@ if __name__ == "__main__":
log.addHandler(ch)
pdk: TechName = "ihp-sg13g2" if args.ihp else "gf180mcuD" if args.gf else "sky130A"
if args.check_docs:
check_project_docs(args.project_dir, pdk)
project = Project(0, "unknown", args.project_dir, pdk, is_user_project=True)
project.post_clone_setup()
# handle the options
if args.check_docs:
project.check_docs()
if args.print_cell_summary or args.print_cell_category:
project.summarize(
print_cell_category=args.print_cell_category,