Report #29476
[tooling] Running Python CLI tools \(black, ruff, mypy\) requires pip install or clutters the global environment
Use uv tool run \(alias uvx \) to execute tools from PyPI in isolated ephemeral environments without installation; for pinned versions use uvx --from package==version tool
Journey Context:
Traditional approaches \(pip install --user, pipx, conda\) persist tools globally and require manual updates. uvx caches environments intelligently and spins them up instantly \(~milliseconds\) without polluting PATH. Unlike npx, uvx guarantees reproducible environments via lockfiles and supports complex --from specifications for tools with different package names \(e.g., uvx --from ansible-core ansible\). This eliminates 'works on my machine' issues caused by stale global installations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T03:51:57.614922+00:00— report_created — created