#!/usr/bin/env bash
# File generated by pre-commit-vauxoo: https://github.com/vauxoo/pre-commit-vauxoo

if [ "$NOLINT" == "1" ] || [ "$NOLINT" == true ]; then exit 0; fi

if [ "$TRAVIS" != true ] && [ -z ${NOLINT+x} ]; then
    read -p "Do you want to run pre-commit-vauxoo? (y/N): " yn </dev/tty
    case $yn in
        [Yy]* ) true;;
        * ) exit 0;;
    esac
fi

if command -v pre-commit-vauxoo > /dev/null; then
    exec pre-commit-vauxoo
else
    echo '`pre-commit-vauxoo` not found.  Did you forget to activate your virtualenv?' 1>&2
    exit 1
fi
