We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67b46fd commit a47abd7Copy full SHA for a47abd7
1 file changed
scripts/release_check.sh
@@ -3,7 +3,11 @@
3
set -euo pipefail
4
5
ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
6
-PYTHON_BIN="${PYTHON_BIN:-python3}"
+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
11
12
echo "==> Running ruff"
13
ruff check "${ROOT_DIR}"
0 commit comments