Skip to content

Commit 4907eb8

Browse files
committed
fix shell check
Signed-off-by: wangli <wangli858794774@gmail.com>
1 parent 9f7e2b8 commit 4907eb8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ default_install_hook_types:
44
default_stages:
55
- pre-commit # Run locally
66
- manual # Run in CI
7-
exclude: 'examples/|vllm-empty/' # Exclude examples from all hooks by default
7+
exclude: '^(examples/.*|vllm-empty/.*)$' # Exclude examples from all hooks by default
88
repos:
99
- repo: https://github.com/codespell-project/codespell
1010
rev: v2.4.1

tools/shellcheck.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ if ! [ -x "$(command -v shellcheck)" ]; then
4040
export PATH
4141
fi
4242

43-
find . -path ./.git -prune -o -name "*.sh" -print0 \
43+
find . \( -path ./.git -o -path ./vllm-empty \) -prune -o -name "*.sh" -print0 \
4444
| while IFS= read -r -d '' file; do
4545
if ! git check-ignore -q "$file"; then
4646
shellcheck -s bash -e SC1091 "$file"
4747
fi
4848
done
49+

0 commit comments

Comments
 (0)