Closed Bug 1803829 Opened 3 years ago Closed 2 years ago

Make black formatting use the same line length as Flake8

Categories

(Thunderbird :: Build Config, task)

Tracking

(thunderbird_esr102 unaffected)

RESOLVED FIXED
110 Branch
Tracking Status
thunderbird_esr102 --- unaffected

People

(Reporter: rjl, Assigned: rjl)

References

Details

Attachments

(2 files)

When black formatting was introduced, there was no way to configure it's desired line length, so it's always been the default, 88 characters.

The Flake8 linter is configured for 99 characters, and I prefer the longer lines, so lets make them agree.

See Also: → 1803830

This aligns black with flake8. A mass-reformat will be needed in a follow-up.

Assignee: nobody → rob
Attachment #9308368 - Attachment description: WIP: Bug 1803829 - Run black linter with line length 99. r=#thunderbird-reviewers → Bug 1803829 - Run black linter with line length 99. r=#thunderbird-reviewers
Status: NEW → ASSIGNED
Attachment #9308369 - Attachment description: WIP: Bug 1803829 - Reformat Python files to standard line length of 99 via black. r=#thunderbird-reviewers → Bug 1803829 - Reformat Python files to standard line length of 99 via black. r=#thunderbird-reviewers

Landing note

This bug does some automatic code reformattiing and is stacked with bug 1799140 (another reformatting bug) in Phabricator. The changes need to land in a the specified order or they may not work out right.

Depends on: 1799140
Target Milestone: --- → 110 Branch

Pushed by thunderbird@calypsoblue.org:
https://hg.mozilla.org/comm-central/rev/f04eebf5e530
Run black linter with line length 99. r=aleca
https://hg.mozilla.org/comm-central/rev/f17741251b26
Reformat Python files to standard line length of 99 via black. r=aleca

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: