Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
tianlh
LightGBM-DCU
Commits
8935591f
Unverified
Commit
8935591f
authored
Feb 09, 2023
by
James Lamb
Committed by
GitHub
Feb 09, 2023
Browse files
[ci] restore flake8 checks (#5703)
parent
4f47547c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
.ci/test.sh
.ci/test.sh
+5
-2
No files found.
.ci/test.sh
View file @
8935591f
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment