Skip to content

Commit

Permalink
Add uv run hint to the uvx guide (#6454)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanieb authored Aug 22, 2024
1 parent 9ee52e4 commit 4576909
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/guides/tools.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4576909

Please sign in to comment.