mirror of
https://github.com/astral-sh/uv.git
synced 2025-09-26 12:09:12 +00:00
Ignore local configuration in tool commands (#5923)
## Summary If you're running a user-level command, we shouldn't respect the local `pyproject.toml` or `uv.toml`.
This commit is contained in:
parent
f4576fe4a7
commit
dd1bcf8ab9
3 changed files with 138 additions and 23 deletions
|
@ -5,6 +5,12 @@ uv supports persistent configuration files at both the project- and user-level.
|
|||
Specifically, uv will search for a `pyproject.toml` or `uv.toml` file in the current directory, or
|
||||
in the nearest parent directory.
|
||||
|
||||
!!! note
|
||||
|
||||
For `tool` commands, which operate the user level, local configuration
|
||||
files will be ignored. Instead, uv will exclusively read from user-level configuration
|
||||
(e.g., `~/.config/uv/uv.toml`).
|
||||
|
||||
If a `pyproject.toml` file is found, uv will read configuration from the `[tool.uv.pip]` table. For
|
||||
example, to set a persistent index URL, add the following to a `pyproject.toml`:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue