2 Star 0 Fork 0

Qi Zhang/rainbond-console

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
check_code.sh 726 Bytes
一键复制 编辑 原始数据 按行查看 历史
barnettZQG 提交于 2020-12-24 20:59 . change check code shell
#! /bin/bash
# check code
echo "start check code specification by flake8"
flake8 --exclude www/migrations,console/migrations,env,venv,static,www/alipay_direct,www/utils/mnssdk,backends --extend-ignore=W605 --max-line-length 129 ./
if [ $? -ne 0 ]; then
exit 1
fi
echo "check code specification success"
# check code format
echo "start check code style by yapf"
yapf --exclude env --exclude static --exclude www/migrations --exclude console/migrations --exclude www/alipay_direct --exclude www/utils/mnssdk --exclude backends --style style.cfg -r ./ -i
[[ -z $(git status -s) ]] || {
echo "some code do not format before commit, please run 'make format' before git commit"
exit 1
}
echo "check code style success"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/zhangbigqi/rainbond-console.git
git@gitee.com:zhangbigqi/rainbond-console.git
zhangbigqi
rainbond-console
rainbond-console
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385