Repository navigation
build(ruff): enable lines-after-imports, DOC201/402/501 and UP042 - #26
Conversation
Move the python-style prose rules into machine checks (furedea/agent-config#74). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Review summary No findings. The change is config-only (
Blocking findings: 0 |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
概要
pyproject.tomlに反映した.[tool.ruff.lint.isort] lines-after-imports = 2を追加し,preview 規則DOC201,DOC402,DOC501,UP042をselectに明示した(explicit-preview-rules = trueのため接頭辞DOCでは有効にならない).規則と置き換わる文章
agents/skills/python-style/)lines-after-imports = 2DOC201/DOC402/DOC501Returns/YieldsとRaisesの節(ArgsはD417)UP042StrEnumの指示のうち(str, Enum)の部分(agent-config 側のpy_prefer_strenumは有効化後に削除できる)違反件数(修正前)
lines-after-imports(I001)DOC201DOC402DOC501UP042検証
nix develop --command uv run --frozen ruff check: All checks passednix develop --command uv run --frozen ruff format --check: 2 files already formattedUP042,DOC201,DOC501,I001が検出されることを確認した(DOC402は同じselect指定で,yield を含む例は未確認).Refs furedea/agent-config#74
🤖 Generated with Claude Code