Skip to content

Commit

Permalink
Old Pylint actually works with Travis
Browse files Browse the repository at this point in the history
  • Loading branch information
gsemet committed Jun 6, 2016
1 parent 6ba7917 commit 3a535bf
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -182,21 +182,20 @@ else
$pyflakes_ok || not_ok "pyflakes failed"
fi

# Disabled because Travis
# status "running pylint"
# if [[ -z `which pylint` ]]; then
# warning "pylint is not installed"
# elif [[ ! -f pylintrc ]]; then
# warning "pylintrc not found"
# else
# pylint_ok=true
# for filename in ${py_files[@]}; do
# if ! pylint --rcfile=pylintrc --disable=R,line-too-long --enable=W0611 --output-format=text "$filename"; then
# pylint_ok=false
# fi
# done
# $pylint_ok || not_ok "pylint failed"
# fi
status "running pylint"
if [[ -z `which pylint` ]]; then
warning "pylint is not installed"
elif [[ ! -f pylintrc ]]; then
warning "pylintrc not found"
else
pylint_ok=true
for filename in ${py_files[@]}; do
if ! pylint --rcfile=pylintrc --disable=R,line-too-long --enable=W0611 --output-format=text "$filename"; then
pylint_ok=false
fi
done
$pylint_ok || not_ok "pylint failed"
fi

echo ""
if $ok; then
Expand Down

0 comments on commit 3a535bf

Please sign in to comment.