repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: ed714747d7acbc5790b171702bb012af3b0fe145 hooks: - id: check-merge-conflict - id: check-symlinks - id: end-of-file-fixer - id: trailing-whitespace - 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)^.*$ - repo: local hooks: - id: clang-format-with-version-check name: clang-format description: Format files with ClangFormat. entry: bash .clang_format.hook -i language: system files: \.(c|cc|cxx|cpp|cu|hxx|proto)$ - repo: local hooks: - id: cpplint-cpp-source name: cpplint description: Check C++ code style using cpplint.py. entry: bash .cpplint_pre_commit.hook language: system files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx)$