diff --git a/scripts/format-check.sh b/scripts/format-check.sh index 89f6a81..c7f3ec4 100755 --- a/scripts/format-check.sh +++ b/scripts/format-check.sh @@ -46,7 +46,7 @@ fi echo echo "==> Checking code style (ruff check)" -if ! uv run ruff check "${check_format[@]}" .; then +if ! uv run ruff check "${check_format[@]:-}" .; then echo echo "Found style problems. Many can be fixed automatically with:" >&2 echo " scripts/format-check.sh --fix" >&2