Skip to content

Use AutoformattingΒ #10606

@danieleades

Description

@danieleades

I feel fairly strongly that this repo should use some sort of pep8-compliant auto-formatter to enforce a common code formatting style.

There are loads of advantages to using an auto-formatter

  • consistent visual style
  • waste less time manually tweaking formatting
  • whole class of flake8 lints are eradicated by the formatter
  • never lose time discussing/debating formatting changes in a PR again

I don't have any strong feelings about which formatter should be used, or what configuration it should employ. I think the value is in the consistency, not the specific style. I've submitted a few PRs now where i've had to spend 10mins tweaking indents until flake8 is happy. That seems absolutely bonkers to me.

I have personally found Black to be really good and have previously suggested it in a rejected PR. I would welcome any other suggestions for a different pep8-compliant formatter

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:enhancementenhance or introduce a new feature

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions