From 280b8f0ad52b23c983996f9a86371179fed6d3d2 Mon Sep 17 00:00:00 2001 From: Zeyu Chen Date: Tue, 15 Jan 2019 15:44:04 +0800 Subject: [PATCH] add copyright hook --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1b1d6471..21bab1f7 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)^.*$ -- GitLab