Skip to content

Switch from black to ruff format#1515

Merged
MaxGhenis merged 2 commits intomainfrom
switch-to-ruff
Mar 6, 2026
Merged

Switch from black to ruff format#1515
MaxGhenis merged 2 commits intomainfrom
switch-to-ruff

Conversation

@MaxGhenis
Copy link
Collaborator

Summary

  • Replace black with ruff>=0.9.0 in dev dependencies, remove linecheck
  • Update Makefile format target to use ruff format .
  • Replace lgeiger/black-action in both CI workflows with uvx ruff format --check .
  • Add [tool.ruff] line-length = 88 to pyproject.toml
  • Reformat entire codebase with ruff (500 files reformatted)
  • No lint rules added — ruff is used for formatting only

Test plan

  • uv run ruff format --check . passes locally (1566 files already formatted)
  • CI Lint job passes with new ruff check
  • CI Test job unaffected by formatting changes

Generated with Claude Code

MaxGhenis and others added 2 commits March 5, 2026 21:27
Replace black formatter with ruff format across pyproject.toml, Makefile,
CI workflows, and CLAUDE.md. Reformat entire codebase with ruff (line-length=88).
No lint rules added — ruff is used for formatting only.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The care-to-learn.ipynb has an invalid notebook schema that causes
ruff to exit with code 2, failing CI.

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