chore: add ruff checks

This commit is contained in:
chengma
2026-07-07 15:11:40 +08:00
parent 862f791fde
commit 6e2347e1c8
13 changed files with 81 additions and 16 deletions
+2
View File
@@ -44,6 +44,8 @@
### 5. 没有 lint/format/type 配置(→ T-525)
> 落地状态:T-525 已完成。当前已加入 `pyproject.toml`、`requirements-dev.txt` 和 CI ruff 检查;先只强制安全类 lint,不做全仓格式化重排,mypy 仍作为后续可选。
- **现状**:无 ruff/black/mypy/pre-commit;类型注解部分覆盖。
- **影响**:大代码库 + AI agent 持续改,缺一致性门禁会慢慢腐化(未用 import、风格漂移)。
- **方案**:引入 ruff(lint+format 一把梭)+ 可选 pre-commit hook;数据模型可渐进上 mypy。