Skip to content

Switch code formatter from Black to Ruff#547

Merged
MaxGhenis merged 2 commits intoPolicyEngine:masterfrom
MaxGhenis:switch-to-ruff
Mar 6, 2026
Merged

Switch code formatter from Black to Ruff#547
MaxGhenis merged 2 commits intoPolicyEngine:masterfrom
MaxGhenis:switch-to-ruff

Conversation

@MaxGhenis
Copy link
Contributor

@MaxGhenis MaxGhenis commented Mar 6, 2026

Summary

  • Remove black[jupyter] and linecheck dependencies from pyproject.toml, add ruff>=0.9.0
  • Update Makefile format target to use ruff format .
  • Replace lgeiger/black-action in CI workflows (pr.yaml, push.yaml) with ruff format --check .
  • Add [tool.ruff] line-length = 88 config to pyproject.toml
  • Reformat all Python files with ruff (106 files reformatted)
  • Add towncrier changelog fragment

Test plan

  • ruff format --check . passes locally
  • CI Lint job passes with new ruff check
  • make format works correctly with ruff

Generated with Claude Code

Replace black and linecheck with ruff for code formatting:
- Remove black[jupyter] and linecheck dependencies, add ruff>=0.9.0
- Update Makefile format target to use ruff format
- Replace lgeiger/black-action in CI with ruff format --check
- Add [tool.ruff] config with line-length=88 to pyproject.toml
- Add towncrier changelog fragment
- Reformat all files with ruff

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@MaxGhenis MaxGhenis merged commit 7143dcc into PolicyEngine:master Mar 6, 2026
4 checks passed
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