Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
Travis CI: skip Pylint under Python 3.6
Browse files Browse the repository at this point in the history
With astroid<=1.4.9, it crashes when encountering `import traceback`.
With astroid master, it produces a whole lot of spurious errors
and then still crashes.

Let's wait until astroid==1.5.0 is released.
  • Loading branch information
vfaronov committed Jan 13, 2017
1 parent 87313e8 commit 367834c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion HACKING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Run tests::

$ pytest

Run Pylint::
Run Pylint (currently doesn't work under Python 3.6)::

$ tools/pylint_all.sh -j 2
$ # ... or selectively:
Expand Down
7 changes: 7 additions & 0 deletions tools/pylint_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,11 @@ set -e

test -e setup.py || { echo 'must run from repo root' >&2; exit 1; }

if [ "$TRAVIS_PYTHON_VERSION" = 3.6 ]; then
# Pylint on HTTPolice doesn't work under Python 3.6
# with the current versions of astroid (1.4.9 and master).
echo 'WARNING: skipping Pylint under Python 3.6' >&2
exit 0
fi

find . -name '*.py' | grep -Fv ./doc/conf.py | xargs pylint "$@"

0 comments on commit 367834c

Please sign in to comment.