Apply ruff standard (convention-python-ruff-standard) #8

Closed
opened 2026-03-29 03:19:13 +00:00 by forgejo_admin · 0 comments

Type

chore

Lineage

Parent: pal-e-platform#244

Repo

forgejo_admin/gmail-mcp

User Story

As a developer, I want gmail-mcp to use the platform-standard ruff config so that formatting and linting are consistent across all repos.

Context

The convention-python-ruff-standard requires line-length=88, target-version="py312", select=["E","F","I","W"]. gmail-mcp currently uses line-length=120, target-version="py310". Needs alignment plus .pre-commit-config.yaml.

File Targets

  • pyproject.toml — update ruff config
  • .pre-commit-config.yaml — create with ruff hooks
  • src/**/*.py — reformat to line-length=88
  • tests/**/*.py — reformat to line-length=88

Acceptance Criteria

  • pyproject.toml has line-length=88, target-version="py312", select=["E","F","I","W"]
  • ruff format --check . passes
  • ruff check . passes
  • .pre-commit-config.yaml exists with ruff-format and ruff hooks

Test Expectations

  • ruff format --check . exits 0
  • ruff check . exits 0
  • Existing tests still pass

Constraints

  • Only change ruff config, formatting, and pre-commit — no other changes
  • Follow convention-python-ruff-standard exactly

Checklist

  • pyproject.toml updated
  • ruff format applied
  • ruff check clean
  • .pre-commit-config.yaml created
  • Tests pass
  • convention-python-ruff-standard
  • pal-e-platform#244
### Type chore ### Lineage Parent: pal-e-platform#244 ### Repo forgejo_admin/gmail-mcp ### User Story As a developer, I want gmail-mcp to use the platform-standard ruff config so that formatting and linting are consistent across all repos. ### Context The convention-python-ruff-standard requires line-length=88, target-version="py312", select=["E","F","I","W"]. gmail-mcp currently uses line-length=120, target-version="py310". Needs alignment plus .pre-commit-config.yaml. ### File Targets - `pyproject.toml` — update ruff config - `.pre-commit-config.yaml` — create with ruff hooks - `src/**/*.py` — reformat to line-length=88 - `tests/**/*.py` — reformat to line-length=88 ### Acceptance Criteria - [ ] pyproject.toml has line-length=88, target-version="py312", select=["E","F","I","W"] - [ ] `ruff format --check .` passes - [ ] `ruff check .` passes - [ ] .pre-commit-config.yaml exists with ruff-format and ruff hooks ### Test Expectations - `ruff format --check .` exits 0 - `ruff check .` exits 0 - Existing tests still pass ### Constraints - Only change ruff config, formatting, and pre-commit — no other changes - Follow convention-python-ruff-standard exactly ### Checklist - [ ] pyproject.toml updated - [ ] ruff format applied - [ ] ruff check clean - [ ] .pre-commit-config.yaml created - [ ] Tests pass ### Related - convention-python-ruff-standard - pal-e-platform#244
forgejo_admin 2026-03-29 03:27:10 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
forgejo_admin/gmail-mcp#8
No description provided.