Comment Comment by jsmeaton I used to have the same setup - a global tools venv with some useful dependencies.Uv takes the position that since it’s so fast to install dependencies and create environments, you don’t maintain a global venv. uvx ruff file.py Will setup a venv, install ruff into it, and run over your file. https://docs.astral.sh/uv/guides/tools/Otherwise you can: uv run —-with package file.py If you don’t want to declare your dependencies.https://docs.astral.sh/uv/guides/scripts/#running-a-script-w... parent jsmeaton 1 year ago
Uv takes the position that since it’s so fast to install dependencies and create environments, you don’t maintain a global venv.
Will setup a venv, install ruff into it, and run over your file. https://docs.astral.sh/uv/guides/tools/Otherwise you can:
If you don’t want to declare your dependencies.https://docs.astral.sh/uv/guides/scripts/#running-a-script-w...