Skip to content

Replace black with ruff format#4419

Merged
ssbarnea merged 1 commit intomainfrom
chore/219
Apr 3, 2025
Merged

Replace black with ruff format#4419
ssbarnea merged 1 commit intomainfrom
chore/219

Conversation

@ssbarnea
Copy link
Copy Markdown
Member

@ssbarnea ssbarnea commented Apr 3, 2025

We already use ruff format on most of devtools projects.

Related: AAP-43336

@ssbarnea ssbarnea requested a review from a team as a code owner April 3, 2025 15:38
@github-actions github-actions bot added dependencies Pull requests that update a dependency file skip-changelog labels Apr 3, 2025
Copy link
Copy Markdown
Contributor

@alisonlhart alisonlhart left a comment

Choose a reason for hiding this comment

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

LGTM!

@cidrblock
Copy link
Copy Markdown

Please add a PR summary noting which changes were manual and which were automagic

@cidrblock cidrblock requested review from cidrblock and Copilot April 3, 2025 15:47
Copy link
Copy Markdown
Contributor

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

This pull request replaces Black with Ruff for code formatting and linting. Key changes include reformatting multi-line expressions (e.g., dictionary comprehensions and import statements), removing Black configuration and hooks, and updating Ruff and pre-commit configurations to enforce the new formatting rules.

Reviewed Changes

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

Show a summary per file
File Description
src/molecule/command/list.py Reformatted dictionary comprehension to multiple lines
src/molecule/command/init/*.py Added extra blank lines and reformatted imports
src/molecule/command/idempotence.py Minor formatting update with added blank line
src/molecule/command/drivers.py Minor formatting update with added blank line
src/molecule/command/destroy.py Minor formatting update with added blank line
src/molecule/command/dependency.py Minor formatting update with added blank line
src/molecule/command/create.py Minor formatting update with added blank line
src/molecule/command/converge.py Minor formatting update with added blank line
src/molecule/command/cleanup.py Minor formatting update with added blank line
src/molecule/command/check.py Reformatted dictionary definition for clarity
src/molecule/main.py Added a blank line above imports
src/molecule/init.py Added a blank line above imports
pyproject.toml Removed Black config and updated Ruff settings; changed known-first-party entry
.pre-commit-config.yaml Removed Black hook and updated Ruff hook command
Files not reviewed (4)
  • .config/constraints.txt: Language not supported
  • .config/requirements-test.txt: Language not supported
  • .vscode/extensions.json: Language not supported
  • .vscode/settings.json: Language not supported
Comments suppressed due to low confidence (1)

pyproject.toml:379

  • The known-first-party value has been changed from "molecule" to "src". Please confirm that this change correctly reflects the project structure and intended package naming.
known-first-party = ["src"]

@ssbarnea ssbarnea merged commit 669d59e into main Apr 3, 2025
23 checks passed
@ssbarnea ssbarnea deleted the chore/219 branch April 3, 2025 15:57
@github-project-automation github-project-automation bot moved this from Review to Done in 🧰 devtools project board Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file skip-changelog

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants