Skip to content

Commit

Permalink
Add flake8 linter to the testing
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Aug 2, 2017
1 parent 3fbb6a0 commit bc67405
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,11 @@ addons:
apt:
packages:
- oracle-java8-set-default

install:
- pip install flake8 # pytest # add another testing frameworks later
before_script:
# stop the build if there are Python syntax errors or undefined names
- time flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
- time flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
script: ./test/python/travisci.sh

0 comments on commit bc67405

Please sign in to comment.