Standardize ruff config: line-length=88, select=E,F,I,W #239

Closed
opened 2026-03-28 18:51:50 +00:00 by forgejo_admin · 0 comments

Type

Feature

Lineage

  • Parent: pal-e-platform#29
  • Board: board-pal-e-platform
  • Story: story:superuser-deploy
  • Arch: arch:developer-tooling

Repo

forgejo_admin/pal-e-api

User Story

As a platform operator, I want this repo's ruff config aligned to the platform standard (line-length=88, select=E,F,I,W) so all Python repos enforce the same formatting rules.

Context

Platform standard decided 2026-03-28: line-length=88 (ruff/Black default), lint rules E,F,I,W only. This repo already has .pre-commit-config.yaml — just needs config alignment in pyproject.toml.

File Targets

  • pyproject.toml — update [tool.ruff] section: line-length = 88, select = ["E", "F", "I", "W"]
  • .pre-commit-config.yaml — verify ruff hook present (already exists)

Acceptance Criteria

  • pyproject.toml has line-length = 88 and select = ["E", "F", "I", "W"]
  • ruff check . passes clean
  • ruff format --check . passes clean

Test Expectations

  • Run ruff check . — zero violations
  • Run ruff format --check . — all files formatted
  • Run existing test suite — no regressions

Constraints

  • Do NOT add N (naming) lint rules
  • Fix any formatting violations introduced by the config change
  • Run ruff format . if needed to align existing code

Checklist

  • Update pyproject.toml
  • Run ruff format to fix violations
  • Run test suite
  • PR opened
  • forgejo_admin/pal-e-platform#29 — parent tracking issue
### Type Feature ### Lineage - Parent: pal-e-platform#29 - Board: board-pal-e-platform - Story: story:superuser-deploy - Arch: arch:developer-tooling ### Repo `forgejo_admin/pal-e-api` ### User Story As a platform operator, I want this repo's ruff config aligned to the platform standard (line-length=88, select=E,F,I,W) so all Python repos enforce the same formatting rules. ### Context Platform standard decided 2026-03-28: line-length=88 (ruff/Black default), lint rules E,F,I,W only. This repo already has .pre-commit-config.yaml — just needs config alignment in pyproject.toml. ### File Targets - `pyproject.toml` — update `[tool.ruff]` section: `line-length = 88`, `select = ["E", "F", "I", "W"]` - `.pre-commit-config.yaml` — verify ruff hook present (already exists) ### Acceptance Criteria - [ ] pyproject.toml has `line-length = 88` and `select = ["E", "F", "I", "W"]` - [ ] `ruff check .` passes clean - [ ] `ruff format --check .` passes clean ### Test Expectations - [ ] Run `ruff check .` — zero violations - [ ] Run `ruff format --check .` — all files formatted - [ ] Run existing test suite — no regressions ### Constraints - Do NOT add N (naming) lint rules - Fix any formatting violations introduced by the config change - Run `ruff format .` if needed to align existing code ### Checklist - [ ] Update pyproject.toml - [ ] Run ruff format to fix violations - [ ] Run test suite - [ ] PR opened ### Related - `forgejo_admin/pal-e-platform#29` — parent tracking issue
forgejo_admin 2026-03-28 19:06:21 +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/pal-e-api#239
No description provided.