From c660b471c4d4201d4fc3517896f69d44b4490003 Mon Sep 17 00:00:00 2001 From: Yi Wang Date: Wed, 20 Jun 2018 17:19:21 -0700 Subject: [PATCH] Move all pre-commit hooks to tools/codestyle (#11610) --- .pre-commit-config.yaml | 4 ++-- .clang_format.hook => tools/codestyle/clang_format.hook | 0 .copyright.hook => tools/codestyle/copyright.hook | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename .clang_format.hook => tools/codestyle/clang_format.hook (100%) rename .copyright.hook => tools/codestyle/copyright.hook (100%) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index eeda759ff1..e718b32cb6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -23,7 +23,7 @@ repos: - id: clang-format-with-version-check name: clang-format description: Format files with ClangFormat. - entry: bash ./.clang_format.hook -i + entry: bash ./tools/codestyle/clang_format.hook -i language: system files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto)$ - repo: local @@ -52,7 +52,7 @@ repos: hooks: - id: copyright_checker name: copyright_checker - entry: python ./.copyright.hook + entry: python ./tools/codestyle/copyright.hook language: system files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto|py)$ exclude: (?!.*third_party)^.*$ | (?!.*book)^.*$ diff --git a/.clang_format.hook b/tools/codestyle/clang_format.hook similarity index 100% rename from .clang_format.hook rename to tools/codestyle/clang_format.hook diff --git a/.copyright.hook b/tools/codestyle/copyright.hook similarity index 100% rename from .copyright.hook rename to tools/codestyle/copyright.hook -- GitLab