Skip to content

Commit 68ce902

Browse files
committed
chore: 添加 agent rules 配置
1 parent 316ebd9 commit 68ce902

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.trae/rules/agent.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Agent Rules
2+
3+
## 依赖
4+
- 唯一声明: `pyproject.toml`
5+
- 安装: `uv pip install .` / `".[dev]"`
6+
- 禁止 requirements.txt
7+
8+
## 命令
9+
```bash
10+
uv venv .venv && uv pip install ".[dev]" # 初始化
11+
uv run pytest # 测试
12+
uv run python bot.py # 运行
13+
```
14+
15+
## 测试
16+
- 文件: `test_*.py`, `*_test.py`, `unit_test.py`
17+
- 目录: `src/plugins/DicePP/`
18+
19+
## 风格
20+
- 最小化变更
21+
- 提交前 `uv run pytest`

0 commit comments

Comments
 (0)