Skip to content
This repository was archived by the owner on Oct 14, 2023. It is now read-only.
This repository was archived by the owner on Oct 14, 2023. It is now read-only.

Add bot to reformat code #1319

@astrojuanlu

Description

@astrojuanlu

When first-time contributors open a pull request, usually they are not aware that they have to run tox -e reformat before committing. Although we have documented these steps in our CONTRIBUTING.md (but not on our Contribute page!), it is normal that some people don't read it.

What usually happens next is that we have to either merge code with a failing quality check (we almost never do that) or ask the user to amend some silly whitespace issues (which is annoying and not always fool-proof).

Instead of fighting against this, I propose we have a bot that we can ask

@bot, please reformat code

and then it pushes another commit to the same branch.

Similar examples:

Metadata

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