Skip to content

feat: filter markdown docs collection sources - #72

Open
tgolob wants to merge 1 commit into
modal-labs:mainfrom
tgolob:feat/collection-scope-filters
Open

feat: filter markdown docs collection sources#72
tgolob wants to merge 1 commit into
modal-labs:mainfrom
tgolob:feat/collection-scope-filters

Conversation

@tgolob

@tgolob tgolob commented Aug 22, 2026

Copy link
Copy Markdown

Closes #71

Summary

  • add --markdown-docs-only-docstrings to collect code fences only from Python docstrings
  • add --markdown-docs-only-text to collect code fences only from standalone Markdown/MDX/SVX files
  • reject passing both scope flags together and document the usage
  • add collection-scope regression tests

Verification

  • uv run --no-sync pytest -q (46 passed)
  • uv run --no-sync ruff check src tests/plugin_test.py
  • uv run --no-sync ruff format --check src tests/plugin_test.py
  • git diff --check

The existing repository mypy command still reports its pre-existing _registered_runners annotation error in _runners.py; this PR does not touch that file.

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.

Add an option to select only testing docstrings/standalone files

1 participant