"python-package/vscode:/vscode.git/clone" did not exist on "0bbb02fd59cea7bb53408510062ab1b8d67193f8"
Unverified Commit 8935591f authored by James Lamb's avatar James Lamb Committed by GitHub
Browse files

[ci] restore flake8 checks (#5703)

parent 4f47547c
...@@ -70,14 +70,17 @@ if [[ $TASK == "lint" ]]; then ...@@ -70,14 +70,17 @@ if [[ $TASK == "lint" ]]; then
${CONDA_PYTHON_REQUIREMENT} \ ${CONDA_PYTHON_REQUIREMENT} \
cmakelint \ cmakelint \
cpplint \ cpplint \
flake8 \
isort \ isort \
mypy \ mypy \
pycodestyle \
pydocstyle \ pydocstyle \
"r-lintr>=3.0" "r-lintr>=3.0"
source activate $CONDA_ENV source activate $CONDA_ENV
echo "Linting Python code" echo "Linting Python code"
pycodestyle --ignore=E501,W503 --exclude=./.nuget,./external_libs . || exit -1 flake8 \
--ignore=E501,W503 \
--exclude=./.nuget,./external_libs,./python-package/build \
. || exit -1
pydocstyle --convention=numpy --add-ignore=D105 --match-dir="^(?!^external_libs|test|example).*" --match="(?!^test_|setup).*\.py" . || exit -1 pydocstyle --convention=numpy --add-ignore=D105 --match-dir="^(?!^external_libs|test|example).*" --match="(?!^test_|setup).*\.py" . || exit -1
isort . --check-only || exit -1 isort . --check-only || exit -1
mypy --ignore-missing-imports python-package/ || true mypy --ignore-missing-imports python-package/ || true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment