Skip to content

Commit e57a135

Browse files
tlrmchlsmthlulmer
authored andcommitted
[Bugfix][CI] Inherit codespell settings from pyproject.toml in the pre-commit-config (vllm-project#13237)
Signed-off-by: Louis Ulmer <[email protected]>
1 parent 47810b8 commit e57a135

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ repos:
1919
rev: v2.4.0
2020
hooks:
2121
- id: codespell
22-
exclude: 'benchmarks/sonnet.txt|(build|tests/(lora/data|models/fixtures|prompts))/.*|vllm/third_party/.*'
22+
additional_dependencies: ['tomli']
23+
args: ['--toml', 'pyproject.toml']
2324
- repo: https://github.com/PyCQA/isort
2425
rev: 5.13.2
2526
hooks:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ exclude = [
9393

9494
[tool.codespell]
9595
ignore-words-list = "dout, te, indicies, subtile, ElementE"
96-
skip = "./tests/models/fixtures,./tests/prompts,./benchmarks/sonnet.txt,./tests/lora/data,./build"
96+
skip = "tests/models/fixtures/*,tests/prompts/*,benchmarks/sonnet.txt,tests/lora/data/*,build/*,vllm/third_party/*"
9797

9898
[tool.isort]
9999
use_parentheses = true

0 commit comments

Comments
 (0)