Skip to content

feat: add uv run support#1405

Open
alexanderkreidich wants to merge 1 commit intortk-ai:masterfrom
alexanderkreidich:fix/1379-uv-run-support
Open

feat: add uv run support#1405
alexanderkreidich wants to merge 1 commit intortk-ai:masterfrom
alexanderkreidich:fix/1379-uv-run-support

Conversation

@alexanderkreidich
Copy link
Copy Markdown

Summary

  • add a dedicated rtk uv command that preserves uv run environment semantics while filtering output down to relevant failures
  • add discover/rewrite support so uv run ... rewrites to rtk uv run ...
  • document the new command in the README, Python command notes, and hook initialization help

Testing

  • PATH=$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/bin:$PATH cargo test uv_run
  • PATH=$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/bin:$PATH cargo test test_init_mentions_all_top_level_commands
  • PATH=$HOME/.rustup/toolchains/stable-x86_64-apple-darwin/bin:$PATH cargo run --quiet -- hook check -- uv run pytest
  • ./target/debug/rtk uv run python -c 'print("hello")'
  • ./target/debug/rtk uv run python -c 'raise RuntimeError("kaboom")'

Closes #1379

@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

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 uv run support to RTK

2 participants