feat(ci): 强制源码安装black+isort,根治格式化行为不一致 #404
Reference in New Issue
Block a user
Delete Branch "feat/ci-black-source-install"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题
runner上的black(compiled版)与开发环境格式化结果有差异,导致Validate大面积失败。
修复
在ci-cd.yml的Install dependencies步骤中,requirements安装后强制重新安装black==26.5.1和isort==8.0.1为源码版(--no-binary :all:),确保CI环境的格式化行为与本地开发环境完全一致。
验收
CI全绿,自动审批通过。