diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 93281d906..7aad026c5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -38,4 +38,4 @@ entry: python .pre-commit-hooks/copyright-check.hook language: system files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto|py)$ - exclude: (?!.*third_party)^.*$ | (?!.*book)^.*$ | (?!.*decoders/swig)^.*$ \ No newline at end of file + exclude: (?=decoders/swig).*(\.cpp|\.h)$ \ No newline at end of file