Skip to content

Switch code formatter from Black to Ruff#575

Open
MaxGhenis wants to merge 3 commits intomainfrom
switch-to-ruff
Open

Switch code formatter from Black to Ruff#575
MaxGhenis wants to merge 3 commits intomainfrom
switch-to-ruff

Conversation

@MaxGhenis
Copy link
Contributor

Summary

  • Replace Black with Ruff for code formatting (formatting only, no lint rules)
  • Update pyproject.toml: swap black dev dependency for ruff>=0.9.0, replace [tool.black] config with [tool.ruff] (line-length = 79)
  • Update Makefile: change format target from black . -l 79 to ruff format .
  • Update CI workflow (reusable_lint.yaml): replace lgeiger/black-action with ruff format --check .
  • Reformat all 20 files that had minor style differences between Black and Ruff
  • Update CLAUDE.md to reference ruff

Test plan

  • ruff format --check . passes locally
  • CI lint check passes with ruff
  • Existing tests unaffected by formatting changes

Generated with Claude Code

Replace Black with Ruff for code formatting across pyproject.toml,
Makefile, CI workflow, and CLAUDE.md. Reformat all Python files with
ruff format (line-length=79). No lint rules added.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
MaxGhenis and others added 2 commits March 5, 2026 21:31
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…t error)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.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