Skip to content

Commit

Permalink
[Bugfix][CI/Build] Fix codespell failing to skip files in git diff (v…
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkLight1337 authored May 29, 2024
1 parent 90a7971 commit f13db0b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion format.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f13db0b

Please sign in to comment.