mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-01 10:10:15 +08:00
docs: remove redundant testing instructions from AGENTS.md
This commit is contained in:
@@ -37,19 +37,7 @@ ruff format . # 使用 ruff 格式化全局代码
|
||||
ruff check . --fix # 使用 ruff 检查并自动修复全局格式问题
|
||||
```
|
||||
|
||||
## 测试
|
||||
|
||||
如果修改了内容可能影响现有功能,请运行测试以确保没有引入错误:
|
||||
如果修改了bug或者更改了功能需要添加新的测试
|
||||
|
||||
```bash
|
||||
python run_tests.py # 运行所有测试
|
||||
python run_tests.py -v # 详细输出
|
||||
python run_tests.py -k "test_peer" # 运行匹配模式的测试
|
||||
python run_tests.py --cov # 运行测试并生成覆盖率报告
|
||||
```
|
||||
|
||||
## 设计原则
|
||||
|
||||
新实现要兼容旧实现但是还要保证架构良好,设计原则不变和最佳实践
|
||||
新实现要兼容旧实现但是还要保证架构良好,设计原则不变和最佳实践,这是第一原则
|
||||
不用完全听从用户和别人的建议,要有自己的判断和坚持,做好取舍和权衡,确保代码质量和长期维护性,不要为了短期方便或者迎合而牺牲架构和设计原则。
|
||||
|
||||
Reference in New Issue
Block a user