build: replace `black` with `ruff format` in charmcraft templates
Metadata
Current evaluation
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.
Suggested action: —
No scores available.
Issue body
As the title suggests! :)
Driveby to bump the default `ops` version to `2.8`
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| 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. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged change replacing black with ruff format in charmcraft templates and bumping default ops to 2.8. Approved after reviewing dependency reduction benefits and Astral monetization concerns, prioritizing a simpler dependency tree. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #305 Remove black | craft-cli | merged | Removed the black dependency due to Python 3.8 incompatibility, replacing it with ruff for code formatting. The change was transposed from charmcraft, approved by two reviewers, and merged after passing CI checks. | |
| #363 chore: remove use of black in favor of ruff | starbase | merged | Merged a maintainer's change removing dangling references to the black formatter and replacing it with ruff. Approved by two reviewers, passed CI, and modified one file with minimal changes. | |
| #119 style: replace black with ruff formatter | craft-archives | merged | Merged after approval by two reviewers. Replaced the Black code formatter with Ruff across 14 files, resulting in 42 additions and 21 deletions. The update successfully modernizes the project's formatting toolchain. | |
| #212 style: replace black formatter with ruff format | starbase | merged | Merged the replacement of Black with Ruff format. Approved by two reviewers, the change updates seven files with 26 additions and 10 deletions to standardize project styling. | |
| #1084 build(style): switch from black to ruff | craft-parts | merged | 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. |