chore(backend): Phase 3 清理 — 未使用依赖 + pyflakes 警告 + 测试冗余 #265

Merged
xiaoxia merged 1 commits from cleanup/phase3-backend into develop 2026-07-13 16:38:36 +08:00
Owner

Phase 3 后端清理

1. 未使用依赖清理

  • requirements-base.txt 移除 cryptographypyOpenSSL(代码中从未导入)

2. pyflakes 警告清零

  • F401 移除 17 处未使用的 import
  • F841 修复 26 处未使用局部变量(有副作用→裸调用,无副作用→删除)
  • 修复 1 处空 except 块、1 处未使用异常变量
  • 最终 pyflakes apps/ packages/ tests/ 退出码 0,零警告

3. 测试文件冗余清理

  • 删除 tests/integration/test_project_management.py(模块级 skip,测试不存在的模块)
  • 删除 tests/integration/fixtures/duplication_routes_fixed.py(未被任何测试引用)

统计

  • 75 files changed, +53 −703

🤖 Generated with Claude Code

## Phase 3 后端清理 ### 1. 未使用依赖清理 - 从 `requirements-base.txt` 移除 `cryptography` 和 `pyOpenSSL`(代码中从未导入) ### 2. pyflakes 警告清零 - **F401** 移除 17 处未使用的 import - **F841** 修复 26 处未使用局部变量(有副作用→裸调用,无副作用→删除) - 修复 1 处空 except 块、1 处未使用异常变量 - 最终 `pyflakes apps/ packages/ tests/` 退出码 0,零警告 ### 3. 测试文件冗余清理 - 删除 `tests/integration/test_project_management.py`(模块级 skip,测试不存在的模块) - 删除 `tests/integration/fixtures/duplication_routes_fixed.py`(未被任何测试引用) ### 统计 - 75 files changed, +53 −703 🤖 Generated with [Claude Code](https://claude.com/claude-code)
xiaoxia added 1 commit 2026-07-13 16:15:06 +08:00
chore(backend): Phase 3 清理 — 未使用依赖删除 + pyflakes 警告清零 + 测试文件冗余清理
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 1m12s
CI/CD Pipeline / Unit Tests (pull_request) Failing after 2m17s
CI/CD Pipeline / Integration Tests (pull_request) Failing after 1m33s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 3m14s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
1a57878f76
1. 未使用依赖清理:
   - 从 requirements-base.txt 移除 cryptography 和 pyOpenSSL

2. pyflakes 警告清零 (apps/ + packages/ + tests/):
   - 移除 17 处未使用的 import (F401)
   - 修复 26 处未使用的局部变量 (F841):
     * 有副作用的赋值转为裸调用
     * 无副作用的赋值直接删除
   - 修复 1 处未使用的异常变量 (F841)
   - 修复 1 处空 except 块

3. 测试文件冗余清理:
   - 删除 tests/integration/test_project_management.py (模块级 skip,测试不存在的模块)
   - 删除 tests/integration/fixtures/duplication_routes_fixed.py (未被引用)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
xiaoxia merged commit 19d5dcbc5a into develop 2026-07-13 16:38:36 +08:00
Sign in to join this conversation.