Skip to content

Commit

Permalink
Merge pull request #365 from riscv-software-src/pre_commit_bin
Browse files Browse the repository at this point in the history
Have pre-commit use setup
  • Loading branch information
dhower-qc authored Dec 19, 2024
2 parents 085d8e6 + 4069297 commit 4d8b28a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/pre-commit
Original file line number Diff line number Diff line change
@@ -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 "$@"

0 comments on commit 4d8b28a

Please sign in to comment.