Skip to content

Set up Ruff and format Python sources - #2090

Draft
jhodges10 wants to merge 2 commits into
codex/uv-scikit-buildfrom
codex/ruff-formatting
Draft

jhodges10 wants to merge 2 commits into
codex/uv-scikit-buildfrom
codex/ruff-formatting

Conversation

@jhodges10

@jhodges10 jhodges10 commented Oct 31, 2026 •

Copy link
Copy Markdown
Collaborator

Replace Flake8 with Ruff and apply the agreed Python style: double quotes, Ruff wrapping, and no trailing commas in list literals. Keep the full formatter-plus-fix workflow in CI.

  • Configure linting, import sorting, formatting, Makefile commands, and the uv lockfile.
  • Add token/AST-based list-comma cleanup with tests protecting tuple, subscript, Unicode, and comment handling.
  • Keep configuration/helpers and the mechanical formatting pass in separate commits.
  • Leave VS Code and devcontainer configuration to the next PR.

Stack: #2082 → this PR → #2091.

The base branch, codex/uv-scikit-build, mirrors the build-tooling PR's head. This diff contains only the Ruff changes. After #2082 merges, retarget this PR to main and rebase if needed before merging.

Validation: all 492 Python tests passed (2 skips). Ruff and the combined formatting check passed. The formatting pass has no AST changes beyond imports and docstring whitespace.

The current CI workflows filter pull requests to main, so their automatic runs will begin when this PR is retargeted to main.

Assisted-by: Codex / GPT-6.1 Sol

Signed-off-by: Jeff Hodges <jeff@jeffhq.com>
Signed-off-by: Jeff Hodges <jeff@jeffhq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant