Skip to content

Modular CLI & Validator Refactor#1

Merged
cclint merged 2 commits intomainfrom
refactor-mod
Jun 26, 2025
Merged

Modular CLI & Validator Refactor#1
cclint merged 2 commits intomainfrom
refactor-mod

Conversation

@cclint
Copy link
Copy Markdown
Member

@cclint cclint commented Jun 26, 2025

Highlights:

  • Refactored the validator into a modular Python package to improve maintainability, testability, and CLI usability.
  • Introduced a proper CLI entry point via csb_validator.cli with support for both crowbar and trusted-node validation modes.
  • All core logic split into discrete modules:
  • runner.py handles async orchestration
  • validator_crowbar.py and validator_trusted.py encapsulate validation logic
  • pdf_writer.py generates summary reports
  • line_mapper.py enables precise line-level error mapping
  • added main.py for support of python -m csb_validator

Fixes:

  • resolved import path and Any type hint errors
  • removed sys.path hacks and redundant imports in tests

@cclint cclint merged commit a2ca84c into main Jun 26, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant