astral-sh / uv

An extremely fast Python package and project manager, written in Rust.
https://docs.astral.sh/uv
Apache License 2.0
27.17k stars 785 forks source link

option or env to make `uv run --no-project` by default #9337

Closed trim21 closed 22 hours ago

trim21 commented 22 hours ago

I have some project do not install currect project as python package, they are just python files in directory with venv and requirements.txt, and it's not buildable.

currently if I want to run some script I'll have to pass --no-project to uv run everytimes.

Hoping to have a env or config field to make it default.

for example, UV_RUN_NO_PROJECT=1 uv run ... or tool.uv.no-project = true in config file