diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1b1d647187a7d86c11970e887f169028e6e23e9f..21bab1f7baea919e7548df5adbf4f312c7dacc75 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,3 +17,11 @@ - id: detect-private-key - id: check-symlinks - id: check-added-large-files +- repo: local + hooks: + - id: copyright_checker + name: copyright_checker + entry: python ./.copyright.hook + language: system + files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto|py)$ + exclude: (?!.*third_party)^.*$