Skip to content

feat(filter): add pyright Python type checker TOML filter#906

Open
tmchow wants to merge 1 commit intortk-ai:developfrom
tmchow:osc/808-pyright-toml-filter
Open

feat(filter): add pyright Python type checker TOML filter#906
tmchow wants to merge 1 commit intortk-ai:developfrom
tmchow:osc/808-pyright-toml-filter

Conversation

@tmchow
Copy link
Copy Markdown

@tmchow tmchow commented Mar 29, 2026

Summary

  • Add TOML filter for pyright (Microsoft's Python type checker)
  • Add pyright to the hook rewrite registry
  • Update built-in filter count (58 -> 59)

Test plan

  • cargo fmt --all && cargo clippy --all-targets && cargo test (1140 passed, 0 failed)
  • Manual testing: filter strips version headers, search messages, blank lines while preserving errors/warnings

Fixes #808

This contribution was developed with AI assistance (Claude Code).

Add pyright support alongside the existing basedpyright filter. Strips
version headers, search messages, and blank lines while keeping error
and warning details with file locations.

Also adds pyright to the rewrite registry so the hook rewrites
`pyright src/` to `rtk pyright src/`.

Fixes rtk-ai#808

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.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