Install pre-push hooks in deployment scripts

This commit is contained in:
Mike Salvatore 2021-04-20 12:11:46 -04:00
parent 753c0586c1
commit 6571e0e4fa
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ log_message() {
configure_precommit() {
$1 -m pip install --user pre-commit
pushd "$2"
$HOME/.local/bin/pre-commit install
$HOME/.local/bin/pre-commit install -t pre-commit -t pre-push
popd
}

View File

@ -18,7 +18,7 @@ function Configure-precommit([String] $git_repo_dir)
if ($LastExitCode) {
exit
}
pre-commit install
pre-commit install -t pre-commit -t pre-push
if ($LastExitCode) {
exit
}