Open
Conversation
- Remove black>=23.1,<24.0 and isort>=5.12,<5.13 from dev dependencies - Remove [tool.black] and [tool.isort] sections from pyproject.toml - Add [tool.ruff.format] section (black-compatible defaults) - Update Makefile run-checks target: replace isort+black with ruff format --check - Apply ruff format to 15 files whose formatting had drifted ruff already existed in dev deps and [tool.ruff] was already configured; this completes the migration by consolidating formatting into ruff as well. No logic changes; formatting-only diffs in source files. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
black>=23.1,<24.0andisort>=5.12,<5.13from dev dependencies[tool.black]and[tool.isort]sections frompyproject.toml[tool.ruff.format](black-compatible defaults, no extra config needed)Makefilerun-checkstarget: replaceisort --check . && black --check .withruff format --check .ruff formatto 15 files whose formatting had driftedMotivation
ruffwas already present in dev dependencies and[tool.ruff]was already configured for linting. This completes the migration by replacing the two remaining redundant tools (black+isort) withruff format, which is black-compatible and handles import sorting viaruff check --select I.Result: one tool, one config section, same behavior.
Test plan
ruff format --check .→96 files already formattedruff check .→All checks passed!make run-checkspasses (excluding mypy/pytest which require full env)🤖 Generated with Claude Code