pvc-bootstrap/.hooks/pre-commit
Joshua M. Boniface 379262a74f Initial commit of PVC Bootstrap system
Adds the PVC Bootstrap system, which allows the automated deployment of
one or more PVC clusters.
2022-01-02 00:38:02 -05:00

23 lines
342 B
Bash
Executable File

#!/usr/bin/env bash
pushd $( git rev-parse --show-toplevel ) &>/dev/null
ex=0
./format check
if [[ $? -ne 0 ]]; then
./format
echo "Black formatting change detected; review and recommit"
ex=1
fi
./lint
if [[ $? -ne 0 ]]; then
echo "Linting error detected; correct and recommit"
ex=1
fi
echo
popd &>/dev/null
exit $ex