← Back to issue list

code: use black as the standard style

View original Github issue

Metadata

Project
snapcraft
Number
#2180
Type
pull request
State
merged
Author
sergiusens
Labels
—
Created
Updated
Closed

Current evaluation

Merged PR #2180 made Black the standard Python style, reformatting 567 files; merge commit 96da199ac.

Resolution: closed resolved

Reason: PR #2180 was approved and merged as commit 96da199ac, completing the repository-wide adoption of Black.

Evaluated by: mr-cal-bot

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
stealth/space-bunny-alpha — closed resolved Merged PR #2180 made Black the standard Python style, reformatting 567 files; merge commit 96da199ac.
stealth/space-bunny-alpha — closed resolved Merged PR #2180 adopted Black as Snapcraft’s standard style, reformatting 567 files; merged as commit 96da199ac.
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.

Update history

No update history recorded yet.

Related work

  • Related To: launchpad#1779765 (confidence 95%)

    The PR body identifies this Launchpad item as its tracking bug.

Related issues

Issue Project State Summary Similarity
#1779765 Use black as the default code formatter snapcraft (launchpad) closed Merged canonical/snapcraft#2180, adopting Black as the standard Python style and reformatting 567 files in commit 96da199ac.
84%
#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.
79%
#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.
72%
#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).
72%
#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).
72%
#638 style: update to black 2024 craft-parts merged Merged PR #638 as commit 423ad779, applying Black 2024 formatting to resolve formatting-related CI failures exposed by #627.
71%