Skip to content

9066 Consolidate Black/Isort Into Ruff - #9174

Draft
ericspod wants to merge 5 commits into
Project-MONAI:devfrom
ericspod:9066_consolidate_ruff
Draft

ericspod wants to merge 5 commits into
Project-MONAI:devfrom
ericspod:9066_consolidate_ruff

Conversation

@ericspod

Copy link
Copy Markdown
Member

Fixes #9066.

Description

This intends to consolidate tools as much as is practical. Ruff can be used to do the same work as isort and black, however it requires configuration to match the exact behaviour of these tools. Currently only isort is replaced and this results in too many changes, replacing black with ruff format changes almost 300 files at once.

Types of changes

  • Non-breaking change (fix or new feature that would not break existing functionality).
  • Breaking change (fix or new feature that would cause existing functionality to change).
  • New tests added to cover the changes.
  • Integration tests passed locally by running ./runtests.sh -f -u --net --coverage.
  • Quick tests passed locally by running ./runtests.sh --quick --unittests --disttests.
  • In-line docstrings updated.
  • Documentation updated, tested make html command in the docs/ folder.

Signed-off-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
Signed-off-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
Signed-off-by: Eric Kerfoot <17726042+ericspod@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ericspod ericspod changed the title 9066 consolidate ruff 9066 Consolidate Black/Isort Into Ruff Oct 14, 2026
@ericspod ericspod moved this from Not Yet Included to In progress in MONAI v1.7 Oct 14, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

Consolidate formatting: replace black and isort with ruff

1 participant