10 Star 14 Fork 0

Gitee 极速下载 / sockeye

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/awslabs/sockeye/releases
Clone or Download
style-check.sh 778 Bytes
Copy Edit Raw Blame History
#!/bin/sh
# run this to perform code-style checking.
# Run pylint on the sockeye package, failing on any reported errors.
pylint --rcfile=pylintrc sockeye -E
SOCKEYE_LINT_RESULT=$?
# Run pylint on test package, failing on any reported errors.
pylint --rcfile=pylintrc test -E
TESTS_LINT_RESULT=$?
# Run mypy, we are currently limiting to modules in typechecked-files
mypy --ignore-missing-imports --follow-imports=silent @typechecked-files --no-strict-optional
MYPY_RESULT=$?
[ $SOCKEYE_LINT_RESULT -ne 0 ] && echo 'pylint found errors in the sockeye package' && exit 1
[ $TESTS_LINT_RESULT -ne 0 ] && echo 'pylint found errors in the test package' && exit 1
[ $MYPY_RESULT -ne 0 ] && echo 'mypy found incorrect type usage' && exit 1
echo 'all style checks passed'
exit 0
1
https://gitee.com/mirrors/sockeye.git
git@gitee.com:mirrors/sockeye.git
mirrors
sockeye
sockeye
master

Search