chore(backend): Phase 3 清理 — 未使用依赖 + pyflakes 警告 + 测试冗余 #265
Reference in New Issue
Block a user
Delete Branch "cleanup/phase3-backend"
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?
Phase 3 后端清理
1. 未使用依赖清理
requirements-base.txt移除cryptography和pyOpenSSL(代码中从未导入)2. pyflakes 警告清零
pyflakes apps/ packages/ tests/退出码 0,零警告3. 测试文件冗余清理
tests/integration/test_project_management.py(模块级 skip,测试不存在的模块)tests/integration/fixtures/duplication_routes_fixed.py(未被任何测试引用)统计
🤖 Generated with Claude Code
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>