Skip to content

FR: Establish a default python formatter / linter and enforce it via CI #171

Open
@thiagowfx

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:

  1. agree on which formatter to use: yapf, black, or something else?
  2. globally format the codebase using it
  3. add a (non-optional?) CI check to enforce it

Resources:

cc @juliandescottes @past

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions