Skip to content

Allow certain hook to be verboseΒ #689

@bagerard

Description

@bagerard

Hi,
While integrating flake8 as a hook, I'm trying to have certain checks (like complexity warnings) run on every commit but I don't necessarily want them to be blocking. flake8 has this very nice --exit-zero flag that allows this but the only way to get the output printed through pre-commit is to run pre-commit with --verbose but this prints a ton of useless information from other hooks.

My suggestion is to allow a 'verbose' flag to be set per hook as opposed to existing --verbose which is set globally. IMO it would allow to have extremely valuable information out of flake8 and pylint for instance. I could even run part of flake8 as being blocking, and other part as being non-blocking.
Let me know your thoughts, I'd be happy to work on this

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions