1 Star 0 Fork 0

hank0712 / pdfsizeopt

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
lint.sh 480 Bytes
一键复制 编辑 原始数据 按行查看 历史
Peter Szabo 提交于 2013-10-08 14:57 . added lint.sh to run pep8
#! /bin/sh
# by pts@fazekas.hu at Tue Oct 8 14:51:23 CEST 2013
PYTHON_FILES="$(find pdfsizeopt_test.py lib extra -name '*.py' |
grep -v '^lib/pdfsizeopt/pdfsizeopt_argparse[.]py$')"
if ! test "$PYTHON_FILES"; then
echo "No Python source files found." >&2
exit 2
fi
#echo "$PYTHON_FILES"
pep8 $PYTHON_FILES | grep -vE '[0-9]: E(111|203) ' | tee pep8.out || :
if test -s pep8.out; then
echo "Found pep8 warnings, see above." >&2
exit 2
fi
echo "No lint warnings." >&2
1
https://gitee.com/hank0712/pdfsizeopt.git
git@gitee.com:hank0712/pdfsizeopt.git
hank0712
pdfsizeopt
pdfsizeopt
master

搜索帮助