build(style): switch from black to ruff
Metadata
Current evaluation
Merged #1084 as commit b28a1dfc, replacing Black with Ruff and autoformatting 32 files; all CI checks passed.
Resolution: closed resolved
Reason: The approved PR was merged as commit b28a1dfc, completing the switch from Black to Ruff and its automatic reformatting.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] Have you added an entry to the changelog (`docs/reference/changelog.rst`)?
-----
This has two commits: the first does the switch and the second autoformats
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged #1084 as commit b28a1dfc, replacing Black with Ruff and autoformatting 32 files; all CI checks passed. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged canonical/craft-parts#1084 replaces Black with Ruff, updating the formatter configuration and autoformatting 32 files; all CI checks passed. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged after approval by two reviewers and passing all CI checks. Switches the code formatter from Black to Ruff via two commits that update configuration and autoformat 32 files. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged maintainer lengau's changes switching the codebase formatter from Black to Ruff. Two commits implement the tool switch and apply automatic formatting across the project. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #212 style: replace black formatter with ruff format | starbase | merged | Merged PR #212 as commit aae9d00, replacing Black with Ruff format across seven files (+26/-10). | |
| #739 style: switch from black to ruff | craft-providers | merged | Merged #739 as commit 2b9c894, replacing Black with Ruff formatting across 23 files in preparation for Starbase adoption. | |
| #119 style: replace black with ruff formatter | craft-archives | merged | Merged PR #119 replaced Black with the Ruff formatter across 14 files (+42/-21), completing the style migration. | |
| #3722 static: black update to 22 syntax | snapcraft | merged | Merged PR #3722 (branch 'black', commit 3afcb2ade, merge commit 24ce5d5b0) into main, reformatting 55 files for Black 22 syntax; a prerequisite cleanup for the later switch from black to the ruff formatter. | |
| #1662 style: autoformat to fix for ruff 0.4 | charmcraft | merged | Merged #1662 as commit b4164211, applying Ruff 0.4-compatible autoformatting across 10 files (+27/-46). | |
| #5343 style: ruff 0.11 fixes | snapcraft | merged | Merged Ruff 0.10/0.11 style fixes in #5343, changing two lines in one file, via merge commit ce88542d5. | |
| #5574 style: ruff 0.12 | snapcraft | merged | Merged Ruff 0.12 compatibility and style updates in commit 94a594fd3 after approval by two reviewers. | |
| #1465 style: fix linting issues for newer ruff | craft-parts | merged | Merged #1465 as a58695ef, fixing five files (+13/-6) for compatibility with newer Ruff; all CI checks passed. | |
| #439 style: migrate from black to ruff for formatting | craft-providers | closed | Ruff formatting migration was abandoned unmerged after the team considered `ruff format` too experimental. | |
| #238 style: autoformat with ruff 0.6 | starbase | merged | Merged PR #238 as commit 6bfb969, applying Ruff 0.6 autoformatting to one file. |