[Bugfix][CI/Build] Fix codespell failing to skip files in git diff (#5097)

This commit is contained in:
Cyrus Leung
2024-05-30 07:02:54 +08:00
committed by GitHub
parent eecd864388
commit eb6c50cdc2

View File

@ -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