Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions scripts/dev/audit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ set -euo pipefail
export DOCKER_DEV_IMAGE="${DOCKER_DEV_IMAGE:-dev-python:3.14}"
export DOCKER_TEST_CMD="${DOCKER_TEST_CMD:-uv sync --check --frozen --group dev && uv lock --check && uv run pip-audit -r requirements.txt -r requirements-dev.txt && uv run pip-licenses --allow-only=\"\$(grep -v '^\#' .pip-licenses-allowlist | grep -v '^\$' | paste -sd ';' -)\"}"

if ! command -v docker-test >/dev/null 2>&1; then
echo "ERROR: docker-test not found on PATH." >&2
echo "Set up standard-tooling: export PATH=../standard-tooling/scripts/bin:\$PATH" >&2
if ! command -v st-docker-test >/dev/null 2>&1; then
echo "ERROR: st-docker-test not found on PATH." >&2
echo "Set up standard-tooling: export PATH=../standard-tooling/.venv/bin:\$PATH" >&2
exit 1
fi
exec docker-test
exec st-docker-test
8 changes: 4 additions & 4 deletions scripts/dev/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ set -euo pipefail
export DOCKER_DEV_IMAGE="${DOCKER_DEV_IMAGE:-dev-python:3.14}"
export DOCKER_TEST_CMD="${DOCKER_TEST_CMD:-uv sync --frozen --group dev && uv run ruff check && uv run ruff format --check .}"

if ! command -v docker-test >/dev/null 2>&1; then
echo "ERROR: docker-test not found on PATH." >&2
echo "Set up standard-tooling: export PATH=../standard-tooling/scripts/bin:\$PATH" >&2
if ! command -v st-docker-test >/dev/null 2>&1; then
echo "ERROR: st-docker-test not found on PATH." >&2
echo "Set up standard-tooling: export PATH=../standard-tooling/.venv/bin:\$PATH" >&2
exit 1
fi
exec docker-test
exec st-docker-test
8 changes: 4 additions & 4 deletions scripts/dev/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ set -euo pipefail
export DOCKER_DEV_IMAGE="${DOCKER_DEV_IMAGE:-dev-python:3.14}"
export DOCKER_TEST_CMD="${DOCKER_TEST_CMD:-uv sync --frozen --group dev && uv run pytest --cov=pymqrest --cov=examples --cov-report=term-missing --cov-branch --cov-fail-under=100}"

if ! command -v docker-test >/dev/null 2>&1; then
echo "ERROR: docker-test not found on PATH." >&2
echo "Set up standard-tooling: export PATH=../standard-tooling/scripts/bin:\$PATH" >&2
if ! command -v st-docker-test >/dev/null 2>&1; then
echo "ERROR: st-docker-test not found on PATH." >&2
echo "Set up standard-tooling: export PATH=../standard-tooling/.venv/bin:\$PATH" >&2
exit 1
fi
exec docker-test
exec st-docker-test
8 changes: 4 additions & 4 deletions scripts/dev/typecheck.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ set -euo pipefail
export DOCKER_DEV_IMAGE="${DOCKER_DEV_IMAGE:-dev-python:3.14}"
export DOCKER_TEST_CMD="${DOCKER_TEST_CMD:-uv sync --frozen --group dev && uv run mypy src/ && uv run ty check src}"

if ! command -v docker-test >/dev/null 2>&1; then
echo "ERROR: docker-test not found on PATH." >&2
echo "Set up standard-tooling: export PATH=../standard-tooling/scripts/bin:\$PATH" >&2
if ! command -v st-docker-test >/dev/null 2>&1; then
echo "ERROR: st-docker-test not found on PATH." >&2
echo "Set up standard-tooling: export PATH=../standard-tooling/.venv/bin:\$PATH" >&2
exit 1
fi
exec docker-test
exec st-docker-test