Apply ruff standard to gmail-mcp (missed from #29 rollout) #244
Labels
No labels
domain:backend
domain:devops
domain:frontend
status:approved
status:in-progress
status:needs-fix
status:qa
type:bug
type:devops
type:feature
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ldraney/pal-e-platform#244
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Type
Feature
Lineage
Repo
forgejo_admin/gmail-mcp(code changes target this repo; issue tracked on pal-e-platform for board alignment)User Story
As the platform operator, I need all Python repos to follow the ruff standard documented in
convention-python-ruff-standard, so CI linting is consistent across the platform.Context
Issue #29 rolled out ruff to 5/6 repos. gmail-mcp was skipped because the issue body listed "TBD" for its local path. Current state: line-length=120 (should be 88), target-version="py310" (should be py312), no .pre-commit-config.yaml. Woodpecker CI already has a ruff lint step (AC4 pre-satisfied).
File Targets
~/gmail-mcp/pyproject.toml— update ruff config (line-length=88, target-version="py312", select=["E","F","I","W"])~/gmail-mcp/.pre-commit-config.yaml— create with ruff hookconvention-python-ruff-standardnote in pal-e-docsAcceptance Criteria
ruff check .passes cleanTest Expectations
ruff check .— 0 errorsruff format --check .— 0 changes neededConstraints
ruff format .after config updateChecklist
ruff format .to reformat for new line-lengthruff check .Related
convention-python-ruff-standard— the standard to applyScope Review: NEEDS_REFINEMENT
Review note:
review-640-2026-03-28File targets verified, template complete, traceability labels present. Two issues found:
pal-e-platformbut all code changes are inforgejo_admin/gmail-mcp. Should be moved to gmail-mcp for PR-to-issue traceability.ruff format .step needed after line-length 120→88 change (implied but not stated).minio-sdkalso hasline-length=120with no remediation ticket. Discovered scope — needs its own issue.gmail-mcpis not listed inconvention-python-ruff-standard"Repos In Scope" table. Needs update after remediation.Scope Refinement Applied (review-640-2026-03-28)
2 body changes per review recommendations:
forgejo_admin/gmail-mcp, issue tracked on pal-e-platform for board alignmentruff format .step: Checklist now includes explicit reformat step after line-length 120→88 changeRe-running scope review.
Scope Review: APPROVED
Review note:
review-640-v2-2026-03-28Re-review after refinement. Both body fixes from previous NEEDS_REFINEMENT review independently verified:
ruff format .checklist item addedAll template sections complete, traceability triangle satisfied, all 4 file targets verified against filesystem, 4 AC machine-verifiable, no decomposition needed (<3 min estimated). Ready for dispatch.