fix: import 管理规范化 — E402 清零 + CI/pyproject 文档化 (Issue #31)#33
Merged
Conversation
- pyproject.toml: F401 (unused-import) 显式标注 - CI: ruff lint 步骤添加 F401 注释 - api/cli/pipeline/role_skill_map: logger 定义移至所有 import 之后,消除 E402 - ruff E402 (模块级导入顺序): 0 errors - ruff F401 (unused-import): 0 errors Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #31 Subtask 2
Changes
.github/workflows/test.ymlpyproject.tomlapi.pycli.pypipeline.pyrole_skill_map.pylogger = logging.getLogger()移至所有 import 之后api.pyimport hashlib移至 stdlib 区Verification
ruff check --select E402 agent_go/: 0 errorsruff check --select F401 agent_go/: 0 errorspytest tests/: 277 passedWhy no common import module?
After Subtask 1 (F401 cleanup), each module imports only what it actually uses. A shared
_imports.pymodule would add indirection without benefit — explicit per-module imports are more readable and maintainable.CI Guard
--select=E,F,Win CI already covers:🤖 Generated with Claude Code
Co-Authored-By: Claude Opus 4.8 noreply@anthropic.com