From a8c70d5078e3541c6cca3e7f4595f9f07ecb7d70 Mon Sep 17 00:00:00 2001 From: Cyrus Leung Date: Thu, 23 May 2024 07:26:32 +0000 Subject: [PATCH] Fix codespell failing to skip `tests/lora/data/long_context_test_data.py` --- format.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/format.sh b/format.sh index aaec25a8aa0dc..d110855f8c273 100755 --- a/format.sh +++ b/format.sh @@ -113,8 +113,11 @@ mypy vllm/logging --config-file pyproject.toml mypy vllm/model_executor --config-file pyproject.toml +# If git diff returns a file that is in the skip list, the file may be checked anyway: +# https://github.com/codespell-project/codespell/issues/1915 +# Avoiding the "./" prefix and using "/**" globs for directories appears to solve the problem CODESPELL_EXCLUDES=( - '--skip' '*docs/source/_build/**,./tests/lora/data' + '--skip' 'tests/prompts/**,./benchmarks/sonnet.txt,tests/lora/data/**,build/**' ) # check spelling of specified files