Skip to content

Add snippet validation CLI - #1328

Draft
danielporterda wants to merge 1 commit into
snippet-validate-source-filesfrom
snippet-validation-cli
Draft

Add snippet validation CLI#1328
danielporterda wants to merge 1 commit into
snippet-validate-source-filesfrom
snippet-validation-cli

Conversation

@danielporterda

@danielporterda danielporterda commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

What changed

  • adds a command-line entry point for validating authored *.source.mdx files
  • prints existing page/line diagnostics to stderr and exits nonzero on errors
  • supports --allow-local for preview-only validation

Why

This exposes the validation layers from the preceding PRs without yet coupling them to npm, CI, compilation, or preview behavior.

Validation

  • 7 focused pytest tests
  • Ruff
  • mypy with explicit package bases
  • git diff --check

Not included

  • npm scripts
  • CI gating
  • snippet resolution or compilation

Signed-off-by: danielporterda <daniel.porter@digitalasset.com>
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