Skip to content

Add rtk python3 command with module routing and traceback filtering#429

Open
seungwoo-ji-03 wants to merge 1 commit intortk-ai:developfrom
seungwoo-ji-03:feat/python3-cmd
Open

Add rtk python3 command with module routing and traceback filtering#429
seungwoo-ji-03 wants to merge 1 commit intortk-ai:developfrom
seungwoo-ji-03:feat/python3-cmd

Conversation

@seungwoo-ji-03
Copy link

Summary

  • python3 was detected 75 times as unsupported in rtk discover --all
  • Add rtk python3 / rtk python commands that:
    • Route -m <module> to existing filters (pytest, mypy, ruff, pip)
    • Handle -m py_compile with compact ok ✓ output
    • Filter deep tracebacks to last frame + error line (60%+ savings)
  • Extend discover rules: python3 -m pytest/pip/ruff correctly classified to specific rtk commands

Before / After

Command Before After
rtk python3 -m pytest tests/ unsupported delegates to rtk pytest
rtk python3 -m pip list unsupported delegates to rtk pip
rtk python3 script.py (crash) unsupported traceback filtered (60%+ savings)
python3 -m ruff check . (discover) unclassified classified as rtk ruff (80%)

Test plan

  • 16 new unit tests, 725 total passed
  • cargo fmt + cargo clippy clean
  • Token savings ≥60% verified on deep traceback fixture

Fixes #285

…aceback filter

Signed-off-by: seungwoo-ji (jeus) <jiseungwoo0210@gmail.com>
@seungwoo-ji-03 seungwoo-ji-03 changed the base branch from master to develop March 9, 2026 12:17
@pszymkowiak pszymkowiak force-pushed the develop branch 4 times, most recently from dc20fc4 to cc93afc Compare March 10, 2026 19:59
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.

Feature request: add rtk rewrite for python3

1 participant