Skip to content

Commit e6af7f3

Browse files
committed
fix shellcheck pre-commit hook to work in CI
The local system hook using `pixi run shellcheck` fails in CI because pixi is not available in the prek-action environment. Switch to the official shellcheck-precommit repo which bundles its own binary.
1 parent b1d7630 commit e6af7f3

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.pre-commit-config.yaml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,10 @@ repos:
4949
- id: ruff-format
5050
types_or: [ python, pyi ]
5151
# Shell script linter
52-
- repo: local
52+
- repo: https://github.com/koalaman/shellcheck-precommit
53+
rev: v0.11.0
5354
hooks:
5455
- id: shellcheck
55-
name: shellcheck
56-
language: system
57-
entry: pixi run shellcheck
58-
types: [shell]
5956

6057
# Checks for spelling mistakes
6158
- repo: https://github.com/codespell-project/codespell

0 commit comments

Comments
 (0)