-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Description
背景
Code review 中发现未使用的 import 等问题应该由自动化工具捕获,而非人工 review。
建议
在 CI 流程中添加 Python linter 检查:
- 工具选择: ruff - 快速、现代的 Python linter
- 检查规则:
- F401: 未使用的 import
- F841: 未使用的变量
- E: 基础代码风格
实现方案
# .github/workflows/ci.yml
- name: Lint Python
run: |
pip install ruff
ruff check .参考
- PR fix: 使用 ResultMessage.result 获取最终响应 #8 review 中 Copilot 指出的 unused import 问题
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels