From 60ba3d6364eb6a498953e68f53b579dbfd88f089 Mon Sep 17 00:00:00 2001 From: sobolevn Date: Fri, 3 Jan 2025 16:15:52 +0300 Subject: [PATCH] Add `shellcheck` to `actionlint` pre-commit (#3251) --- .github/workflows/test.yml | 4 ++-- .pre-commit-config.yaml | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d4c218e40..3182b6388 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -31,10 +31,10 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install poetry run: | - curl -sSL "https://install.python-poetry.org" | python + curl -sSL 'https://install.python-poetry.org' | python # Adding `poetry` to `$PATH`: - echo "$HOME/.poetry/bin" >> $GITHUB_PATH + echo "$HOME/.poetry/bin" >> "$GITHUB_PATH" - name: Install dependencies run: | poetry config virtualenvs.in-project true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b91a4582b..5b33728e3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,6 +24,8 @@ repos: rev: v1.7.5 hooks: - id: actionlint + additional_dependencies: + - "github.com/wasilibs/go-shellcheck/cmd/shellcheck@latest" - repo: https://github.com/woodruffw/zizmor-pre-commit rev: v1.0.0 hooks: @@ -38,7 +40,7 @@ repos: hooks: - id: pyproject-fmt - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.4 + rev: v0.8.5 hooks: - id: ruff args: ["--exit-non-zero-on-fix"]