Skip to content

[RFC] Adopting black Python formatter. #6505

Closed
@trivialfis

Description

@trivialfis

The black Python formatter supports automated code formatting. It's widely used on various Python projects like dask and optuna and I really like its output. It allows me to write code without wrangling with formats, which is becoming more and more difficult with Python typing.

However currently xgboost's formatting style is quite different from the default in black so black will generate a huge diff. It's "uncompromising" so we can't avoid it.

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