From 36ffea2169675122e4fad8b4fdf4f9cac553a288 Mon Sep 17 00:00:00 2001 From: youkaichao Date: Mon, 20 Jan 2025 16:04:49 +0800 Subject: [PATCH] [misc] add placeholder format.sh (#12206) Signed-off-by: youkaichao Signed-off-by: Isotr0py <2037008807@qq.com> --- format.sh | 5 +++++ tools/shellcheck.sh | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 format.sh diff --git a/format.sh b/format.sh new file mode 100755 index 0000000000000..4bcd0be0c96e5 --- /dev/null +++ b/format.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +echo "vLLM linting system has been moved from format.sh to pre-commit hook." +echo "Please run 'pip install -r requirements-lint.txt' and 'pre-commit install' to install the pre-commit hook." +echo "Then linters will run automatically before each commit." diff --git a/tools/shellcheck.sh b/tools/shellcheck.sh index d99fa77b96351..7efb3cabc64fe 100755 --- a/tools/shellcheck.sh +++ b/tools/shellcheck.sh @@ -19,4 +19,4 @@ if ! [ -x "$(command -v shellcheck)" ]; then fi # TODO - fix warnings in .buildkite/run-amd-test.sh -find . -name "*.sh" -not -path "./.buildkite/run-amd-test.sh" -print0 | xargs -0 -I {} sh -c 'git check-ignore -q "{}" || shellcheck "{}"' +find . -name "*.sh" ".git" -prune -not -path "./.buildkite/run-amd-test.sh" -print0 | xargs -0 -I {} sh -c 'git check-ignore -q "{}" || shellcheck -s bash "{}"'