build: replace `black` with `ruff format` in charmcraft templates
Metadata
Current evaluation
PR #1378 merged as commit 485a756c, swapping black for ruff format/check in the scaffolded charm templates (tox.ini/pyproject) and bumping the default ops version to 2.8.
Resolution: closed resolved
Reason: The pull request was approved and merged into main as commit 485a756c ("build: replace `black` with `ruff format` in charmcraft templates (#1378)"), a 9-file change replacing black with ruff in the init templates. Reviewer question about generalising the change and Astral's monetization was answered by the author (fewer deps), with no blockers left.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | PR #1378 merged as commit 485a756c, swapping black for ruff format/check in the scaffolded charm templates (tox.ini/pyproject) and bumping the default ops version to 2.8. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #1378 as commit 485a756c, replacing black with ruff format in Charmcraft templates to reduce dependencies and bumping the default ops version to 2.8. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged after two approvals and passing CI. Replaced black with ruff format in charmcraft templates to reduce dependencies, and bumped ops to 2.8. Monetization concerns were addressed and approved. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Replaced black with ruff format in charmcraft templates to reduce dependencies. Also bumped default ops version to 2.8. Approved despite monetization concerns due to simpler dependency footprint. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/charmcraft#212
(confidence 55%)
Later commit aae9d000 'style: replace black formatter with ruff format (#212)' extends the same black-to-ruff migration to charmcraft's own source.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1941 fix(templates): replace flake8 and pydocstyle with ruff | charmcraft | merged | Merged PR #1941 (commit 9aba24c4) replaced flake8 and pydocstyle with Ruff in Charmcraft templates, resolving #1461. | |
| #1517 build: update ruff settings | charmcraft | merged | Merged into charmcraft as commit 33854f04, updating the project's Ruff lint configuration (+6/-6). | |
| #1461 Replace flake8 and pydocstyle template tests with ruff | charmcraft | closed | Ruff replaced flake8 and pydocstyle in Charmcraft template validation via merged PR #1941 (commit 9aba24c4). | |
| #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). | |
| #2383 style: update to ruff 0.12 | charmcraft | merged | Merged PR #2383 updated Charmcraft to Ruff 0.12 and applied the associated lint and formatting changes across nine files. | |
| #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. |