Skip to content

feat: add python3/pytest output filter — compress test results and script output #1256

Closed as duplicate

Description

@etaseoul-jason

Problem

python3 and virtual-env Python commands produce verbose output that wastes tokens:

Evidence

rtk discover (last 30 days):

  • python3 <<: 47 commands
  • .venv/bin/python: 16 commands
  • /opt/homebrew/bin/python3: 15 commands
  • Total: 78 commands, currently unhandled

Suggested approach

  1. Rewrite coverage: match python3, .venv/bin/python, absolute-path python binaries
  2. pytest filter: compress per-test PASSED/FAILED lines, keep summary + first failure traceback
  3. General python filter: truncate large stdout, keep first/last N lines

Environment

  • rtk 0.30.0, macOS Darwin 24.6.0
  • Claude Code PreToolUse hook

Activity

  1. added
    effort-medium
    enhancement
    on Apr 13, 2026
  2. pszymkowiak commented on Apr 13, 2026

    @pszymkowiak
    Collaborator

    wshm · Automated triage by AI

    🔍 Automated Triage

    ✨ Category feature
    🟡 Priority medium
    🎯 Confidence 92%

    Summary

    Feature request to add Python/pytest output filtering to compress verbose test results and script output; well-scoped with usage data provided.


    Triaged automatically by wshm · This is an automated analysis, not a human review.

  3. KuSh commented on Sep 13, 2026

    @KuSh
    Collaborator

    Closing as a duplicate of #928, which tracks the same request - rewrite and filter support for direct python/python3 invocations covering script, -m module and heredoc forms - and has the fullest breakdown and reproduction. The specifics raised here (usage counts, summarisation threshold, venv and absolute-path interpreters) are worth adding as a comment there so they are not lost. Please continue the discussion on #928.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:clieffort-mediumenhancementhelp wantedplatform:macospriority:medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions