chore: add ruff checks
This commit is contained in:
@@ -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。
|
||||
|
||||
Reference in New Issue
Block a user