13 lines
309 B
Bash
13 lines
309 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
META_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
VENV_ROOT="${GOVOPLAN_VENV_ROOT:-$META_ROOT/.venv}"
|
|
PYTHON="${PYTHON:-$VENV_ROOT/bin/python}"
|
|
|
|
if [[ ! -x "$PYTHON" ]]; then
|
|
PYTHON=python3
|
|
fi
|
|
|
|
"$PYTHON" "$META_ROOT/tools/checks/check-contracts.py" "$@"
|