提交 6ea5a9fd 编写于 作者: Y Yu Yang

Add tips when unittest error

上级 4afaaa4b
#!/bin/bash #!/bin/bash
function abort(){
echo "Your commit not fit PaddlePaddle code style" 1>&2
echo "Please use pre-commit scripts to auto-format your code" 1>&2
exit 1
}
trap 'abort' 0
set -e set -e
source common.sh source common.sh
cd .. cd ..
...@@ -6,3 +13,5 @@ export PATH=/usr/bin:$PATH ...@@ -6,3 +13,5 @@ export PATH=/usr/bin:$PATH
pre-commit install pre-commit install
clang-format --version clang-format --version
pre-commit run -a pre-commit run -a
trap : 0
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册