Skip to content

[Proposal] Black as python formatting library #34

@ppanero

Description

@ppanero

Motivation

As a developer I want to avoid making formatting changes that might modify the history based on my local configuration/preference on coding.

Therefore, the aim is to align all python modules with a common formatting/code styling. In order to achieve said goal, Black is the proposed formatter.

Summary

To use Black as Python formatter it would need to be added to the test suite in the run-tests.sh, and the corresponding changes would need to be applied to isort, pep8 checks.

In addition, guidelines on how to auto-format using black should be provided for the main IDEs (VS Code, PyCharm).

Resources

On-going RFC writing here: https://codimd.web.cern.ch/b9Ok5Jt2Q6OSRI31wNI6Tg

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions