feat(ci): P1-1 Phase2 后端启用F401+F841并修复存量 #470

Merged
auto-approve-bot merged 3 commits from ci/p1-1-backend-f401-f841 into develop 2026-07-17 14:06:50 +08:00
Owner

变更内容

P1-1 代码质量 Phase 2 后端部分

规则收紧

  • ruff全局ignore移除 F401(未使用import)
  • ruff全局ignore移除 F841(未使用变量)
  • 保留 __init__.py 和 tests/* 的per-file-ignores(合理例外)

存量修复

  • F401:32处未使用import,全部自动修复(ruff --fix)
  • F841:7处未使用变量,手动修复
    • 6处纯赋值/无副作用:直接删除
    • 1处有副作用(self._clip_repo.update(clip)):保留调用,移除赋值变量

变更统计

  • 29 files changed, 11 insertions(+), 43 deletions(-)
  • 纯清理类改动,零业务逻辑变更
## 变更内容 P1-1 代码质量 Phase 2 后端部分 ### 规则收紧 - ruff全局ignore移除 `F401`(未使用import) - ruff全局ignore移除 `F841`(未使用变量) - 保留 `__init__.py` 和 `tests/*` 的per-file-ignores(合理例外) ### 存量修复 - **F401**:32处未使用import,全部自动修复(ruff --fix) - **F841**:7处未使用变量,手动修复 - 6处纯赋值/无副作用:直接删除 - 1处有副作用(`self._clip_repo.update(clip)`):保留调用,移除赋值变量 ### 变更统计 - 29 files changed, 11 insertions(+), 43 deletions(-) - 纯清理类改动,零业务逻辑变更
xiaoxia added 1 commit 2026-07-17 13:34:11 +08:00
feat(ci): P1-1 Phase2 后端启用F401+F841并修存量
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 15s
AI Code Review / AI Code Review (pull_request) Successful in 58s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 1m4s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 54s
Auto Approve CI PRs / Auto Approve on CI Green (pull_request) Successful in 2m23s
Auto Merge CI PRs / Auto Merge on CI Green + Approved (pull_request) Successful in 2m22s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 3m29s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m40s
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Failing after 1465h55m29s
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Failing after 1465h55m30s
CI Build & Deploy Pipeline / Deploy Production (pull_request) Failing after 1465h55m30s
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Failing after 1465h55m30s
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Failing after 1465h55m31s
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1465h55m31s
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Failing after 1465h55m33s
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Failing after 1465h55m33s
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Failing after 1466h27m29s
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Failing after 1466h27m30s
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Failing after 1466h27m32s
88d22137a6
- ruff: 从全局ignore移除F401(未使用import)和F841(未使用变量)
- F401: 自动修复32处未使用import
- F841: 手动修复7处未使用变量(含1处有副作用调用保留调用)
- __init__.py和tests/*的per-file-ignores保持不变
xiaoxia added 1 commit 2026-07-17 13:51:12 +08:00
fix: isort import????(ruff?F401???????)
Auto Approve CI PRs / Auto Approve on CI Green (pull_request) Failing after 0s
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 15s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 32s
AI Code Review / AI Code Review (pull_request) Successful in 56s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 1m2s
Auto Merge CI PRs / Auto Merge on CI Green + Approved (pull_request) Successful in 1m20s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m29s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 2m55s
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Failing after 1465h38m29s
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Failing after 1465h38m31s
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Failing after 1465h38m31s
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Failing after 1465h38m31s
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Failing after 1465h38m32s
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Failing after 1465h38m33s
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1465h38m32s
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Failing after 1465h38m33s
CI Build & Deploy Pipeline / Deploy Production (pull_request) Failing after 1466h10m29s
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Failing after 1466h10m30s
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Failing after 1466h10m32s
edf1fde323
xiaoxia added 1 commit 2026-07-17 14:02:31 +08:00
fix: black格式化对齐(移除未使用import后重排)
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 10s
AI Code Review / AI Code Review (pull_request) Successful in 1m1s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 1m2s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Successful in 2m23s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 3m12s
Auto Approve CI PRs / Auto Approve on CI Green (pull_request) Successful in 3m35s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m29s
Auto Merge CI PRs / Auto Merge on CI Green + Approved (pull_request) Successful in 4m17s
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Failing after 1465h27m7s
CI Build & Deploy Pipeline / Deploy Production (pull_request) Failing after 1465h27m8s
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Failing after 1465h27m9s
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Failing after 1465h27m9s
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Failing after 1465h27m10s
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Failing after 1465h27m11s
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Failing after 1465h27m13s
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Failing after 1465h27m13s
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Failing after 1465h59m8s
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Failing after 1465h59m9s
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Failing after 1465h59m11s
9f06602634
auto-approve-bot approved these changes 2026-07-17 14:06:06 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。
auto-approve-bot approved these changes 2026-07-17 14:06:07 +08:00
auto-approve-bot left a comment
Collaborator

CI全绿,自动审批通过。

CI全绿,自动审批通过。
auto-approve-bot merged commit 09d2b12ea8 into develop 2026-07-17 14:06:50 +08:00
auto-approve-bot deleted branch ci/p1-1-backend-f401-f841 2026-07-17 14:06:50 +08:00
Sign in to join this conversation.