Skip to content

Black as standard code formatter #51

@zRafaF

Description

@zRafaF

How we are today

Currently the code base has no standard formatting options, nor text editor config files

Proposed Enhancement

Addition of a formatter to the standard of code, such as Black, this formatter can also be added to run in an action when merging code to main. This way the whole code base will have a nicer and even look to it, making it easier to do code reviews.

Implementation

Install black and run a recursive formatting script such as:

pip install black

python -m black .

Extras

  • Add an automatic action to the workflows.
  • Add the formatter settings to .vscode/settings.json

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