code: use black as the standard style
Metadata
Current evaluation
Merged after approval and CI checks. Adopted Black as the standard code formatter, reformatting 567 files with 39,831 additions and 33,762 deletions. Diff coverage reached 90.92%.
Suggested action: —
No scores available.
Issue body
LP: #1779765
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
- [ ] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [ ] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [ ] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)?
- [ ] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)?
- [ ] Have you successfully run `./runtests.sh static`?
- [ ] Have you successfully run `./runtests.sh unit`?
-----
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged after approval and CI checks. Adopted Black as the standard code formatter, reformatting 567 files with 39,831 additions and 33,762 deletions. Diff coverage reached 90.92%. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged into the main branch, adopting Black as the standard Python code formatter. The maintainer updated the codebase to enforce consistent styling, with Codecov reporting 90.92% diff coverage during review. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged to adopt Black as the standard code formatting tool. The codebase was reformatted to enforce consistent styling, with Codecov reporting 90.92% diff coverage during integration. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2599 static: update to newer black | snapcraft | merged | Merged after reviewer approval and passing CI. Updated the codebase to a newer Black formatter version across 15 files (+35/-41 lines). Codecov reported 85.71% diff coverage, flagging a missing base commit upload. | |
| #2603 black: minor format changes from updated black | snapcraft | merged | Minor formatting updates from the updated black code formatter were reviewed, approved, passed CI checks, and successfully merged into the main branch. | |
| #3722 static: black update to 22 syntax | snapcraft | merged | Merged update to Black formatter v22 syntax across 55 files. Approved by reviewer, passed CI, and integrated into main despite a minor 0.08% coverage decrease. | |
| #315 style: use black for consistent and automated formatting | charmcraft | merged | Merged after two approvals. Adopted Black for automated formatting across 36 files, added a formatting test, and configured flake8 to ignore conflicting rules. Increased the line length limit to accommodate Black's output. | |
| #3853 lint: lint legacy code with black | snapcraft | merged | Merged following reviewer approval and passing CI. Applied Black formatting to legacy code across 12 files, resulting in 84 additions and 37 deletions. Code coverage remained stable at 88.16%. | |
| #1779765 Use black as the default code formatter | snapcraft (launchpad) | closed | Adopting black as the default code formatter was closed without discussion or implementation. The proposal to automate style checks and simplify the hacking guide was abandoned. | |
| #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. | |
| #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. | |
| #638 style: update to black 2024 | craft-parts | merged | Merged Black 2024 formatting updates to resolve CI failures. Approved by two reviewers with passing checks. | |
| #446 Configure black in 99 columns. | charmcraft | merged | Configured the Black code formatter to use a 99-character line width. Approved by two reviewers, the update was merged, modifying 39 files with 297 additions and 894 deletions. |