Skip to content

Commit

Permalink
[ci] added cpplint check (#2416)
Browse files Browse the repository at this point in the history
* added cpplint heck

* removed TODO from code

* change order of checks
  • Loading branch information
StrikerRUS committed Sep 19, 2019
1 parent a3a353d commit 306c6db
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .ci/test.sh
Expand Up @@ -50,10 +50,12 @@ if [[ $TRAVIS == "true" ]] && [[ $TASK == "check-docs" ]]; then
exit 0
fi

if [[ $TASK == "pylint" ]]; then
if [[ $TASK == "lint" ]]; then
conda install -q -y -n $CONDA_ENV pycodestyle pydocstyle
pip install --user cpplint
pycodestyle --ignore=E501,W503 --exclude=./compute,./.nuget . || exit -1
pydocstyle --convention=numpy --add-ignore=D105 --match-dir="^(?!^compute|test|example).*" --match="(?!^test_|setup).*\.py" . || exit -1
cpplint --filter=-build/header_guard,-whitespace/line_length --recursive ./src ./include || exit 0
exit 0
fi

Expand Down
4 changes: 2 additions & 2 deletions .travis.yml
Expand Up @@ -17,7 +17,7 @@ env:
- TASK=sdist PYTHON_VERSION=2.7
- TASK=bdist
- TASK=if-else
- TASK=pylint
- TASK=lint
- TASK=check-docs
- TASK=mpi METHOD=source
- TASK=mpi METHOD=pip
Expand All @@ -31,7 +31,7 @@ matrix:
- os: osx
env: TASK=gpu METHOD=pip PYTHON_VERSION=3.6
- os: osx
env: TASK=pylint
env: TASK=lint
- os: osx
env: TASK=check-docs

Expand Down

0 comments on commit 306c6db

Please sign in to comment.