Skip to content

feat(validate): add --all flag to validate all example case files#1620

Open
adityaraut09 wants to merge 1 commit into
MFlowCode:masterfrom
adityaraut09:feat/validate-all-flag
Open

feat(validate): add --all flag to validate all example case files#1620
adityaraut09 wants to merge 1 commit into
MFlowCode:masterfrom
adityaraut09:feat/validate-all-flag

Conversation

@adityaraut09

Copy link
Copy Markdown

Closes #1529

Adds an --all flag to ./mfc.sh validate that loops through all example case files and reports which ones pass or fail, rather than requiring the user to check them one at a time manually.

Type of change

  • New feature

Changes

  • toolchain/mfc/cli/commands.py: made input positional optional (nargs="?"), added --all / -a flag to VALIDATE_COMMAND
  • toolchain/mfc/validate.py: added _validate_one() helper and --all branch that globs examples/**/case.py, validates each, and prints a pass/fail summary

Testing

Verified syntax with python3 -c "import ast; ast.parse(...)". Full integration test requires the MFC build environment.

@adityaraut09 adityaraut09 force-pushed the feat/validate-all-flag branch from 1bc1aaf to 88d7a31 Compare June 30, 2026 03:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

All-File Validation for Toolchain

1 participant