update: 087

This commit is contained in:
TaurusXin 2025-06-20 13:49:07 +08:00
parent 457c8f299d
commit 40fce7a8dc

View File

@ -89,7 +89,12 @@ url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"
default = true default = true
``` ```
如果想对之后的所有项目都生效,则需要配置全局配置,创建一个全局的配置文件 `~/.config/uv/uv.toml` 并将以下内容写入 如果想对之后的所有项目都生效,则需要配置全局配置,创建一个全局的配置文件 `uv.toml` 并将以下内容写入(请注意,不同操作系统的配置文件路径不同)
| 操作系统 | 配置文件路径 |
|---------------|----------------------|
| Linux / macOS | ~/.config/uv/uv.toml |
| Windows | %APPDATA%\uv\uv.toml |
```toml ```toml
[[index]] [[index]]
@ -97,6 +102,8 @@ url = "https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple"
default = true default = true
``` ```
更多关于配置文件的内容,详见[官网的文档](https://docs.astral.sh/uv/concepts/configuration-files/)
--- ---
## 项目实战 ## 项目实战