enable pre-commit

This commit is contained in:
MorganGeek
2020-02-15 15:16:45 +01:00
parent c2259c5783
commit 1732ed5cd2
16 changed files with 283 additions and 120 deletions

View File

@ -226,3 +226,8 @@ function gcrb {
}
function terraform-compliance { docker run --rm -v "$(pwd):/target" -i -t eerkunt/terraform-compliance "$@"; }
function checkov { docker run -i --rm -v "$(pwd):/tf" bridgecrew/checkov -d /tf "$@" ; }
function copyhooks {
cp -f ~/.git-template/.pre-commit-config.yaml ./
pre-commit install --install-hooks --overwrite
pre-commit run -a
}