Skip to content

Use an automatic code formatter and pre-commit hook? #3464

@nicoddemus

Description

@nicoddemus

Hi everyone,

I've been thinking about some time now to use an automatic code formatter to our codebase such as black or yapf, together with pre-commit and tox environments to check for compliance on CI.

Pros:

  • Consistent code formatting: currently the format is very mixed and we don't enforce it.
  • Help new contributors: no need to think or follow a style guide, it is done automatically.

Cons:

  • We will pollute the repository and lose some of the blame history.

Opinions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: infrastructureimprovement to development/releases/CI structure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions