Skip to content

Add config option to ask user to continue anyway #871

@SimonHeimberg

Description

@SimonHeimberg

When the config for some code-style (eslint, php-cs, ...) is not (yet) fine tuned, it would be handier to answer an interactive question than to redo the commit with SET=hook_id.

When there is no tty, the hook would fail.

suggestion for configuration:

#.pre-commit-config.yaml
-   repo: https://github.com/pre-commit/pre-commit-hooks
    hooks:
    -   id: some-unreliable-check
        ask_on_fail: true

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