@cli.command("uninstall-hook")
@click.pass_context
def uninstall_hook(ctx):
    try:
        lint_config = ctx.obj
        hooks.GitHookInstaller.uninstall_commit_msg_hook(lint_config)
        # declare victory :-)
        hook_path = hooks.GitHookInstaller.commit_msg_hook_path(lint_config)
        click.echo("Successfully uninstalled gitlint commit-msg hook from {0}".format(hook_path))
        ctx.exit(0)
    except hooks.GitHookInstallerError as e:
        click.echo(str(e), err=True)
        ctx.exit(GIT_CONTEXT_ERROR_CODE)
Uninstall gitlint commit-msg hook.
dataset/ETHPy150Open jorisroovers/gitlint/gitlint/cli.py/uninstall_hook