astral-sh / uv

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

How to find root uv config? #9354

Open kevinsimper opened 3 days ago

kevinsimper commented 3 days ago

How does UV find root? What is the defining rule where UV stops looking?

https://docs.astral.sh/uv/concepts/projects/workspaces/#workspace-sources

turbo does it by defining it extends

image

https://turbo.build/repo/docs/reference/package-configurations

charliermarsh commented 3 days ago

The root is the nearest parent directory containing a pyproject.toml.