FR: Establish a default python formatter / linter and enforce it via CI #171
Open
Description
Note: Originally copied / imported from web-platform-tests/wpt#42710. We'll keep the other bug open to track the implementation side of this FR.
So long as we do not agree on a default formatter for this repository, back-end-forth diff noise and bikeshedding keeps coming up (e.g.).
It would be the best to everyone, and for improved devex, to agree to use one and only one formatter.
Additionally, to ensure it sticks, we should add some CI job to enforce that no violations are introduced.
The status quo (at least within the realm of WebDriver BiDi) seems to be the following:
- Google / Chromium and the Chromium BiDi Mapper use
yapf v0.31.0
. - Mozilla / Firefox uses
black
.
The following AIs should happen:
- agree on which formatter to use:
yapf
,black
, or something else? - globally format the codebase using it
- add a (non-optional?) CI check to enforce it
Resources:
Metadata
Assignees
Labels
No labels