From c6eeb650af3ed249dfa92b13ba8b1f0ebc9b0b13 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Tue, 22 Nov 2016 10:56:45 +0800 Subject: [PATCH] Add clang-format hooks --- .pre-commit-config.yaml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9385943da92..c1ae1058c2f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,3 +22,7 @@ # not all of our python code is runnable. Some are used for # documenation # - id: debug-statements +- repo: https://github.com/PaddlePaddle/clang-format-pre-commit-hook.git + sha: 38b232ea0fd2be46c26a691b9f32dd94d1ee3333 + hooks: + - id: clang-formater -- GitLab