Skip to content

Commit

Permalink
Travis CI: Lint for Python syntax errors and undefined names
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored and yonghong-song committed Jul 17, 2019
1 parent a74c042 commit 60944a4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
language: generic
matrix:
include:
- name: "generic tests"
- name: "flake8 lint on Python 2.7"
language: python
python: 2.7
install: pip install flake8
script: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
- name: "flake8 lint on Python 3.7"
dist: xenial # required for Python >= 3.7
language: python
python: 3.7
install: pip install flake8
script: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
allow_failures:
- python 3.7
install:
- sudo apt-get install -y python-pip
- sudo pip install pep8
Expand Down

0 comments on commit 60944a4

Please sign in to comment.