Skip to content

Use Black formatting #249

@incaseoftrouble

Description

@incaseoftrouble

Hi,

This is more of a recommendation that would ease PR / Merging significantly: Namely, use / require the python formatter black. See here for its documentation.

Basically, black defines one very "rigid" code style, i.e. after formatting a file with black, it will almost always look the same, no matter what formatting one starts from. This may at first sound constricting, but if the style is so rigid, no formatting changes can accidentally creep into MRs and only "actual" changes appear in the PR.

Usage is quite simple. pip install black followed by black problemtools/ to format all .py files in that folder. So it also is rather simple to update all existing forks etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions