Some checks failed
Docker. / Ubuntu (push) Has been cancelled
User-agent updater. / User-agent (push) Failing after 15s
Lock Threads / lock (push) Failing after 10s
Waiting for answer. / waiting-for-answer (push) Failing after 22s
Needs user action. / needs-user-action (push) Failing after 8s
Can't reproduce. / cant-reproduce (push) Failing after 8s
Close stale issues and PRs / stale (push) Has been cancelled
21 lines
598 B
Bash
Executable File
21 lines
598 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# File generated by pre-commit: https://pre-commit.com
|
|
# ID: 138fd403232d2ddd5efb44317e38bf03
|
|
|
|
# start templated
|
|
INSTALL_PYTHON=/usr/bin/python3
|
|
ARGS=(hook-impl --config=.pre-commit-config.yaml --hook-type=pre-commit)
|
|
# end templated
|
|
|
|
HERE="$(cd "$(dirname "$0")" && pwd)"
|
|
ARGS+=(--hook-dir "$HERE" -- "$@")
|
|
|
|
if [ -x "$INSTALL_PYTHON" ]; then
|
|
exec "$INSTALL_PYTHON" -mpre_commit "${ARGS[@]}"
|
|
elif command -v pre-commit > /dev/null; then
|
|
exec pre-commit "${ARGS[@]}"
|
|
else
|
|
echo '`pre-commit` not found. Did you forget to activate your virtualenv?' 1>&2
|
|
exit 1
|
|
fi
|