Skip to content

Commit

Permalink
Fix shellcheck lint
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanlensky committed Nov 17, 2024
1 parent c835e2b commit a847825
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions scripts/format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@
set -e
set -x

uv run ruff check zendriver --fix
uv run ruff format zendriver
python_files=(zendriver scripts)

uv run ruff check "${python_files[@]}" --fix
uv run ruff format "${python_files[@]}"
8 changes: 4 additions & 4 deletions scripts/lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
set -e
set -x

python_files="zendriver scripts"
python_files=(zendriver scripts)

echo "Running ruff check..."
uv run ruff check $python_files
uv run ruff check "${python_files[@]}"
echo "Running ruff format check..."
uv run ruff format $python_files --check
uv run ruff format "${python_files[@]}" --check
echo "Running mypy..."
uv run mypy $python_files
uv run mypy "${python_files[@]}"

0 comments on commit a847825

Please sign in to comment.