From 57dc96bd90d9f520cd8ef83c1353d59f9515ca4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=A5=E6=B5=A9?= Date: Fri, 9 Jan 2026 15:11:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20AGENTS.md=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=BF=90=E8=A1=8C=E5=91=BD=E4=BB=A4=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B=EF=BC=8C=E5=BC=BA=E8=B0=83=E4=BD=BF=E7=94=A8=20uv=20?= =?UTF-8?q?=E8=BF=90=E8=A1=8C=E8=84=9A=E6=9C=AC=E4=BB=A5=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E4=BE=9D=E8=B5=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AGENTS.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/AGENTS.md b/AGENTS.md index cd34a57..f1cc00c 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -40,7 +40,14 @@ import sympy as sp # 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)