Skip to content

Python formatting: replace Black with Ruff#556

Merged
agarny merged 2 commits into
opencor:mainfrom
agarny:issue542
May 28, 2026
Merged

Python formatting: replace Black with Ruff#556
agarny merged 2 commits into
opencor:mainfrom
agarny:issue542

Conversation

@agarny
Copy link
Copy Markdown
Contributor

@agarny agarny commented May 28, 2026

Fixes #542.

Copilot AI review requested due to automatic review settings May 28, 2026 11:01
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Replaces Black with Ruff as the Python formatter across build configuration, CI, and CMake targets.

Changes:

  • Swap [tool.black] for [tool.ruff] in pyproject.toml (excluding extern).
  • Replace BLACK_EXE discovery and PYTHON_FORMATTING_AVAILABLE gating with RUFF_EXE in CMake.
  • Update CI workflow to install and invoke Ruff instead of Black; bump patch version.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
VERSION.txt Patch version bump.
pyproject.toml Replaces Black config with Ruff config.
cmake/formatting/CMakeLists.txt Calls ruff format for check/format targets.
cmake/environmentchecks.cmake Finds and advertises RUFF_EXE in lieu of BLACK_EXE.
.github/workflows/ci.yml Installs Ruff instead of Black in the formatting job.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@agarny agarny merged commit a10edd8 into opencor:main May 28, 2026
24 checks passed
@agarny agarny deleted the issue542 branch May 28, 2026 11:17
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.

Python formatting: replace Black with Ruff

2 participants