Skip to content

Commit afa91c9

Browse files
DarkLight1337joerunde
authored andcommitted
[Bugfix][CI/Build] Fix codespell failing to skip files in git diff (vllm-project#5097)
1 parent d603c5d commit afa91c9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

format.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,11 @@ mypy vllm/logging --config-file pyproject.toml
113113
mypy vllm/model_executor --config-file pyproject.toml
114114

115115

116+
# If git diff returns a file that is in the skip list, the file may be checked anyway:
117+
# https://github.com/codespell-project/codespell/issues/1915
118+
# Avoiding the "./" prefix and using "/**" globs for directories appears to solve the problem
116119
CODESPELL_EXCLUDES=(
117-
'--skip' '*docs/source/_build/**,./tests/lora/data'
120+
'--skip' 'tests/prompts/**,./benchmarks/sonnet.txt,tests/lora/data/**,build/**'
118121
)
119122

120123
# check spelling of specified files

0 commit comments

Comments
 (0)