style: switch from black to ruff
Metadata
Current evaluation
Merged #739 as commit 2b9c894, replacing Black with Ruff formatting across 23 files in preparation for Starbase adoption.
Resolution: closed resolved
Reason: PR #739 was approved and merged as commit 2b9c894, completing the Black-to-Ruff formatting migration.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [x] Have you followed the guidelines for contributing?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] Have you successfully run `tox`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged #739 as commit 2b9c894, replacing Black with Ruff formatting across 23 files in preparation for Starbase adoption. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #739 in commit 2b9c894, switching formatting from Black to Ruff across 23 files as part of Starbase preparation. | |
| qwen/qwen3.6-35b-a3b | — | closed resolved | Merged PR switching the project's formatting tool from black to ruff, updating 23 files and aligning with starbasification efforts. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Superseded By:
canonical/craft-providers#439
(confidence 90%)
Earlier unmerged migration attempt; the same formatting change ultimately landed through #739.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1084 build(style): switch from black to ruff | craft-parts | merged | Merged #1084 as commit b28a1dfc, replacing Black with Ruff and autoformatting 32 files; all CI checks passed. | |
| #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). | |
| #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. | |
| #165 style: fix linting for ruff 0.12 | imagecraft | merged | Merged #165, incorporating canonical/starbase#408, with a four-file Ruff 0.12 compatibility style update (+7/-7). | |
| #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. | |
| #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. | |
| #1232 tools: update ruff configuration to starbase v1 | charmcraft | merged | Merged charmcraft#1232 in commit c9eb75cd, updating Ruff to Starbase v1 and applying related lint and formatting changes across 64 files. | |
| #1960 style(lint): move from black to ruff | charmcraft | merged | Merged Charmcraft’s Black-to-Ruff migration across 122 files in commit d2b40dfb. | |
| #5574 style: ruff 0.12 | snapcraft | merged | Merged Ruff 0.12 compatibility and style updates in commit 94a594fd3 after approval by two reviewers. | |
| #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. |