style: update to black 2024
Metadata
Current evaluation
Merged PR #638 as commit 423ad779, applying Black 2024 formatting to resolve formatting-related CI failures exposed by #627.
Resolution: closed resolved
Reason: PR #638 was approved and merged into the project as commit 423ad779, updating the codebase to Black 2024 style.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
Update to black 2024 style (automatic fixes simply by running `black`), which is causing [CI to fail](https://github.com/canonical/craft-parts/actions/runs/7702082875/job/20989575488?pr=627#step:5:12)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #638 as commit 423ad779, applying Black 2024 formatting to resolve formatting-related CI failures exposed by #627. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged as canonical/craft-parts#638 (423ad779), updating the codebase to Black 2024 formatting to resolve CI failures. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged Black 2024 formatting updates to resolve CI failures. Approved by two reviewers with passing checks. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged an update to format code using Black 2024, resolving CI failures caused by outdated styling. Automatic fixes applied via the Black formatter aligned the codebase with the new style guide. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/craft-parts#627
(confidence 98%)
Its CI run exposed formatting incompatibilities with Black 2024, which PR #638 corrected.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2599 static: update to newer black | snapcraft | merged | Merged #2599, applying formatting from a newer Black release across 15 files in commit 05913cd56. | |
| #1491 style(autoformat): update black to 2024 | charmcraft | merged | Merged PR #1491 in commit 15273c6b, updating Black to the 2024 style and reformatting five Python files. | |
| #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. | |
| #185 style(black): update black to v24 | craft-application | merged | Merged style PR #185 (commit c4fa7570) bumping Black to v24: adjusted pyproject.toml config and reformatted 4 files (net +8/-12). | |
| #315 style: use black for consistent and automated formatting | charmcraft | merged | Merged Black formatting across 36 files, added a formatting test, and ignored flake8 E203/W503 for Black compatibility in charmcraft#315 (merge commit ad135981). | |
| #2603 black: minor format changes from updated black | snapcraft | merged | Merged #2603 (commit b442ea48d) by cjp256, applying minor formatting-only changes (+4/-6 lines, 4 files) after Black was updated to the 19.10b0 syntax, keeping ./runtests.sh static passing. | |
| #4029 lint: reformat for black 23.1.0 | snapcraft | merged | Merged PR #4029 (commit 51c24948) reformatting 66 files for Black 23.1.0. The only failing check was a setuptools>=66 unit-test breakage, fixed separately by #4031 pinning setuptools<66. | |
| #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). | |
| #3853 lint: lint legacy code with black | snapcraft | merged | Merged #3853 as 806bfd04, applying Black formatting to legacy code across 12 files (+84/-37); follow-up #3865 added those files to test-black linting. | |
| #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. |