From 067678262ac5ef038c9a9804c0f02a5272484abf Mon Sep 17 00:00:00 2001 From: Tyler Michael Smith Date: Thu, 13 Feb 2025 23:19:43 -0500 Subject: [PATCH] [Bugfix][CI] Inherit codespell settings from pyproject.toml in the pre-commit-config (#13237) --- .pre-commit-config.yaml | 3 ++- pyproject.toml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f664b4c558bf1..b1967065c09b2 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 849e8781e24ef..96d4aa149abfd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -93,7 +93,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