Skip to content

pre-commit has suppressed colors in the output of the hook tool #1100

@anentropic

Description

@anentropic

I'm running a linting tool as a pre-commit hook, the colored output from the tool is useful.

pre-commit seems to strip the colors from the tool output though

I tried pre-commit run <tool> --color=always but it had no effect, it seems this flag only toggles the color from pre-commit's own output strings ("Failed" etc).

Is there a way to preserve color in the output from the tool being run by pre-commit?

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