From ea4007b642efa6b8a7c4790ba17b064663f33975 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Thu, 22 Aug 2024 17:02:34 -0500 Subject: [PATCH] Add tip for using `uv run --no-project` --- docs/concepts/projects.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/concepts/projects.md b/docs/concepts/projects.md index ad94bfd243ea..1e520e527222 100644 --- a/docs/concepts/projects.md +++ b/docs/concepts/projects.md @@ -177,6 +177,11 @@ $ # Running a `bash` script that requires the project to be available $ uv run bash scripts/foo.sh ``` +!!! tip + + Use the `--no-project` option to avoid reading project files like the `pyproject.toml` and `uv.lock`. + `uv run --no-project` will still run commands in the `.venv` in the working directory. + ### Running commands with additional dependencies Additional dependencies or different versions of dependencies can be requested per invocation.