Report #9139
[tooling] Running Python CLI tools without installing them into the current environment
Use \`uv tool run ruff\` \(or the shorthand \`uvx ruff\`\) to execute Python tools in ephemeral, cached environments without modifying the current virtualenv or system Python
Journey Context:
Traditional approaches require \`pip install\` which pollutes the environment, or \`pipx\` which requires separate installation and management. \`uv tool run\` downloads and caches the tool in an isolated environment, runs it with the provided arguments, and exits without leaving permanent changes. This is ideal for one-off tasks \(formatting, linting, package building\) and CI pipelines where you want the latest version without version conflicts. It respects tool-specific Python version requirements automatically.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T07:20:41.579993+00:00— report_created — created