Files
Adrien Eppling 16d6599b4c refacto(cmds): strip decorator noise from filter output
Separator lines (═══, ---) and an emoji status marker cost tokens
without adding signal for the LLM — RTK output must never add noise
over raw. Semantic labels are kept; the emoji is swapped for plain
monochrome unicode.
2026-06-05 17:41:53 +02:00
..

Python Ecosystem

Part of src/cmds/ — see also docs/contributing/TECHNICAL.md

Specifics

  • pytest_cmd.rs uses a state machine text parser (no JSON available from pytest)
  • ruff_cmd.rs uses JSON for check mode (--output-format=json) and text filtering for format mode
  • pip_cmd.rs auto-detects uv as a pip alternative and routes accordingly
  • python -m pytest and python3 -m mypy are rewritten by the hook registry to rtk pytest / rtk mypy

Cross-command

  • ruff_cmd is called by cmds/js/lint_cmd and cmds/system/format_cmd for Python projects
  • mypy_cmd is called by cmds/js/lint_cmd when detecting Python type checking