Skip to content

Switch from black to ruff format#439

Merged
MaxGhenis merged 3 commits intomasterfrom
switch-to-ruff
Mar 6, 2026
Merged

Switch from black to ruff format#439
MaxGhenis merged 3 commits intomasterfrom
switch-to-ruff

Conversation

@MaxGhenis
Copy link
Contributor

@MaxGhenis MaxGhenis commented Mar 6, 2026

Summary

  • Replace black dependency with ruff>=0.9.0 in pyproject.toml dev dependencies
  • Add [tool.ruff] line-length = 79 to pyproject.toml to preserve existing line length
  • Update Makefile format target to use ruff format .
  • Replace lgeiger/black-action in CI workflows with uvx ruff format --check . (using astral-sh/setup-uv@v4)
  • Reformat codebase with ruff (20 files had minor formatting differences)
  • Update README badge and formatting docs from black to ruff

Test plan

  • ruff format --check . passes locally
  • CI lint job passes with new ruff check
  • Tests still pass (formatting-only changes)

🤖 Generated with Claude Code

Replace black with ruff for code formatting across pyproject.toml,
Makefile, and CI workflows. Use ruff format with line-length=79 to
match the previous black configuration.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
MaxGhenis and others added 2 commits March 5, 2026 22:06
Remove explicit line-length = 79 from [tool.ruff] in pyproject.toml
and reformat all files with the default 88-character limit.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@MaxGhenis MaxGhenis merged commit 2b2a727 into master Mar 6, 2026
16 checks passed
@MaxGhenis MaxGhenis deleted the switch-to-ruff branch March 6, 2026 12:49
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