diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 22b51afdc57a..f07477db2cdc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -19,7 +19,8 @@ repos: rev: v2.4.0 hooks: - id: codespell - exclude: 'benchmarks/sonnet.txt|(build|tests/(lora/data|models/fixtures|prompts))/.*|vllm/third_party/.*' + additional_dependencies: ['tomli'] + args: ['--toml', 'pyproject.toml'] - repo: https://github.com/PyCQA/isort rev: 5.13.2 hooks: diff --git a/pyproject.toml b/pyproject.toml index 9892967b82d7..fd705e7e828e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -92,7 +92,7 @@ exclude = [ [tool.codespell] ignore-words-list = "dout, te, indicies, subtile, ElementE" -skip = "./tests/models/fixtures,./tests/prompts,./benchmarks/sonnet.txt,./tests/lora/data,./build" +skip = "tests/models/fixtures/*,tests/prompts/*,benchmarks/sonnet.txt,tests/lora/data/*,build/*,vllm/third_party/*" [tool.isort] use_parentheses = true