diff --git a/bin/pre-commit b/bin/pre-commit index ccf0660f4..bf5077bb1 100755 --- a/bin/pre-commit +++ b/bin/pre-commit @@ -1,5 +1,6 @@ #!/bin/bash ROOT=$(dirname $(dirname $(realpath $BASH_SOURCE[0]))) +source $ROOT/bin/setup -${ROOT}/bin/bash -c "source ${ROOT}/.home/.venv/bin/activate && pre-commit $@" +$PYTHON -mpre_commit "$@"