Skip to content

Commit a47abd7

Browse files
Scott KostolniScott Kostolni
authored andcommitted
chore(release): prefer local venv for gate
1 parent 67b46fd commit a47abd7

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

scripts/release_check.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,11 @@
33
set -euo pipefail
44

55
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
6-
PYTHON_BIN="${PYTHON_BIN:-python3}"
6+
if [[ -z "${PYTHON_BIN:-}" && -x "${ROOT_DIR}/.venv/bin/python" ]]; then
7+
PYTHON_BIN="${ROOT_DIR}/.venv/bin/python"
8+
else
9+
PYTHON_BIN="${PYTHON_BIN:-python3}"
10+
fi
711

812
echo "==> Running ruff"
913
ruff check "${ROOT_DIR}"

0 commit comments

Comments
 (0)