Skip to content

Add pre-commit hook and GHA workflow to apply black linter to Python files #4244

@jhlegarreta

Description

@jhlegarreta

Description

Add a pre-commit hook and GHA workflow to apply the black linter to Python files.

Expected coding style

ITK contains numerous Python files: by applying a pre-commit hook and GHA workflow to apply the black linter to such files would improve readability across such files by standardizing their style.

Actual coding style

No Python linter is applied other than the one done locally by some maintainers and contributors.

Versions

master.

Additional Information

N/A.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:StyleStyle changes: no logic impact (indentation, comments, naming)

    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