mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 02:48:17 +00:00
docs(configuration): clarify uv.toml
precedence (#6986)
## Summary Add a note in the documentation to clarify that `uv.toml` files take precedence over `[tool.uv]` section in `pyproject.toml`, based on the warning shown in the CLI: ```console $ uv version warning: Found both a `uv.toml` file and a `[tool.uv]` section in an adjacent `pyproject.toml`. The `[tool.uv]` section will be ignored in favor of the `uv.toml` file. uv 0.4.2 (Homebrew 2024-09-01) ```
This commit is contained in:
parent
1ccc15e7bb
commit
5cc76679e9
1 changed files with 6 additions and 0 deletions
|
@ -33,6 +33,12 @@ uv will also search for `uv.toml` files, which follow an identical structure, bu
|
|||
index-url = "https://test.pypi.org/simple"
|
||||
```
|
||||
|
||||
!!! note
|
||||
|
||||
`uv.toml` files take precedence over `pyproject.toml` files, so if both `uv.toml` and
|
||||
`pyproject.toml` files are present in a directory, configuration will be read from `uv.toml`, and
|
||||
`[tool.uv]` section in the accompanying `pyproject.toml` will be ignored.
|
||||
|
||||
uv will also discover user-level configuration at `~/.config/uv/uv.toml` (or
|
||||
`$XDG_CONFIG_HOME/uv/uv.toml`) on macOS and Linux, or `%APPDATA%\uv\uv.toml` on Windows. User-level
|
||||
configuration must use the `uv.toml` format, rather than the `pyproject.toml` format, as a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue