Skip to content

Commit c660b47

Browse files
authored
Move all pre-commit hooks to tools/codestyle (#11610)
1 parent c413c46 commit c660b47

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
- id: clang-format-with-version-check
2424
name: clang-format
2525
description: Format files with ClangFormat.
26-
entry: bash ./.clang_format.hook -i
26+
entry: bash ./tools/codestyle/clang_format.hook -i
2727
language: system
2828
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto)$
2929
- repo: local
@@ -52,7 +52,7 @@ repos:
5252
hooks:
5353
- id: copyright_checker
5454
name: copyright_checker
55-
entry: python ./.copyright.hook
55+
entry: python ./tools/codestyle/copyright.hook
5656
language: system
5757
files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|proto|py)$
5858
exclude: (?!.*third_party)^.*$ | (?!.*book)^.*$
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)