From b63bd14999187d07c02e99c24fb5299fbebe7155 Mon Sep 17 00:00:00 2001 From: Harry Mellor <19981378+hmellor@users.noreply.github.com> Date: Tue, 1 Apr 2025 16:41:30 +0100 Subject: [PATCH] Reinstate `format.sh` and make `pre-commit` installation simpler (#15890) Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> --- .pre-commit-config.yaml | 3 +++ format.sh | 6 ++++++ 2 files changed, 9 insertions(+) create mode 100644 format.sh diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 484cd171..f81410ab 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,3 +1,6 @@ +default_install_hook_types: + - pre-commit + - commit-msg default_stages: - pre-commit # Run locally - manual # Run in CI diff --git a/format.sh b/format.sh new file mode 100644 index 00000000..6ba93e0a --- /dev/null +++ b/format.sh @@ -0,0 +1,6 @@ +#!/bin/bash + +echo "vLLM linting system has been moved from format.sh to pre-commit hooks." +echo "Please run 'pip install -r requirements/lint.txt', followed by" +echo "'pre-commit install' to install the pre-commit hooks." +echo "Then linters will run automatically before each commit." \ No newline at end of file