Skip to content

Commit

Permalink
If you want to run flake8 tests on each pull request...
Browse files Browse the repository at this point in the history
The owner of the this repo would need to go to https://travis-ci.org/profile and flip on the repository switch to enable free automated falke8 testing on each pull request
  • Loading branch information
cclauss authored Jul 28, 2017
1 parent d5e8601 commit 0e64769
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
@@ -0,0 +1,16 @@
language: python
python:
- 2.7.13
- 3.6.2
install:
- pip install flake8==3.3.0 # 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:
- true # add other tests here
notifications:
on_success: change
on_failure: always

0 comments on commit 0e64769

Please sign in to comment.