We have pre-commit hooks in the root directory - https://github.com/PaddlePaddle/Paddle/blob/develop/.clang_format.hook - https://github.com/PaddlePaddle/Paddle/blob/develop/.copyright.hook and in the tools directory - ./tools/codestyle/cpplint_pre_commit.hook Let us move them into `/tools/pre-commit.hook` like what I did in https://github.com/wangkuiyi/fluid