From 1970c68318584c822a82d6c1229e144074ea27ad Mon Sep 17 00:00:00 2001 From: Debasis Mandal Date: Wed, 24 Jun 2026 14:34:22 +0000 Subject: [PATCH] fix(pre-commit): correct clang-format exclude, drop dead aot_config clause MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The exclude regex separated its two patterns with a space, which the (?x) verbose flag strips — collapsing it to a single pattern that matched nothing, so neither 3rdparty nor aot_config was excluded. Rather than just restore the alternation, drop the flashinfer/jit/aot_config.py clause entirely: it is a gitignored, generated .py file, and this hook only runs on [c++, c, cuda], so the clause could never match. Keep the 3rdparty exclusion for vendored code. Co-Authored-By: Claude Opus 4.7 --- .pre-commit-config.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 4d3ef31a72..52dbeb87e4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -40,8 +40,7 @@ repos: hooks: - id: clang-format types_or: [c++, c, cuda] - exclude: | - (?x)^(3rdparty/.* flashinfer/jit/aot_config.py)$ + exclude: ^3rdparty/.* - repo: https://github.com/pre-commit/mirrors-mypy rev: 'v1.17.1' # Use the sha / tag you want to point at