代码拉取完成,页面将自动刷新
#!/bin/bash
echo "inside $0"
RET=0
if [ "$LINT" == true ]; then
echo "Linting all files with limited rules"
flake8 statsmodels
if [ $? -ne "0" ]; then
echo "Changed files failed linting using the required set of rules."
echo "Additions and changes must conform to Python code style rules."
RET=1
fi
# Run with --isolated to ignore config files, the files included here
# pass _all_ flake8 checks
echo "Linting known clean files with strict rules"
flake8 --isolated \
statsmodels/resampling/ \
statsmodels/interface/ \
statsmodels/duration/__init__.py \
statsmodels/graphics/tsaplots.py \
statsmodels/graphics/functional.py \
statsmodels/graphics/tests/test_functional.py \
statsmodels/examples/tests/ \
statsmodels/iolib/smpickle.py \
statsmodels/iolib/tests/test_pickle.py \
statsmodels/regression/mixed_linear_model.py \
statsmodels/regression/recursive_ls.py \
statsmodels/tools/linalg.py \
statsmodels/tools/web.py \
statsmodels/tools/tests/test_linalg.py \
statsmodels/tools/decorators.py \
statsmodels/tools/tests/test_decorators.py \
statsmodels/tsa/base/tests/test_datetools.py \
statsmodels/tsa/regime_switching \
statsmodels/tsa/vector_ar/dynamic.py \
statsmodels/tsa/vector_ar/hypothesis_test_results.py \
statsmodels/tsa/statespace/*.py \
statsmodels/tsa/statespace/tests/results/ \
statsmodels/tsa/statespace/tests/test_var.py \
statsmodels/conftest.py \
setup.py
if [ $? -ne "0" ]; then
echo "Previously passing files failed linting."
RET=1
fi
# Tests any new python files
git fetch --unshallow --quiet
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
git fetch origin --quiet
NEW_FILES=$(git diff origin/master --name-status -u -- "*.py" | grep ^A | cut -c 3- | paste -sd " " -)
if [ -n "$NEW_FILES" ]; then
echo "Linting newly added files with strict rules"
flake8 --isolated $(eval echo $NEW_FILES)
if [ $? -ne "0" ]; then
echo "New files failed linting."
RET=1
fi
fi
fi
exit $RET
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。