更新 AGENTS.md,添加运行命令示例,强调使用 uv 运行脚本以自动安装依赖
This commit is contained in:
@@ -40,7 +40,14 @@ import sympy as sp
|
|||||||
# Your code here...
|
# Your code here...
|
||||||
```
|
```
|
||||||
|
|
||||||
使用 `uv run script.py` 即可自动安装依赖并执行。
|
**运行命令**:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
uv run script.py # ✅ 正确:uv 解析 PEP 723 metadata,自动安装依赖
|
||||||
|
uv run python script.py # ❌ 错误:直接调用 python,不会读取 inline metadata
|
||||||
|
```
|
||||||
|
|
||||||
|
> ⚠️ **必须使用 `uv run script.py`**,不要加 `python`!
|
||||||
|
|
||||||
# Output Format (The Final Markdown Report)
|
# Output Format (The Final Markdown Report)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user