Add `uv run` hint to the `uvx` guide (#6454)

This commit is contained in:
Zanie Blue 2024-08-22 17:58:05 -05:00 committed by GitHub
parent 9ee52e4e39
commit 4576909a10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,12 @@ $ uvx pycowsay hello from uv
Tools are installed into temporary, isolated environments when using `uvx`.
!!! note
If you are running a tool in a [_project_](../concepts/projects.md) and the tool requires that your project is installed,
e.g., when using `pytest` or `mypy`, you'll want to use [`uv run`](./projects.md#running-commands) instead of `uvx`.
Otherwise, the tool will be run in a virtual environment that is isolated from your project.
## Commands with different package names
When `uvx ruff` is invoked, uv installs the `ruff` package which provides the `ruff` command.