Skip to content

Commit e4cae95

Browse files
author
cclauss
authored
Add flake8 to the testing, Python 2.7.12 -> 2.7.13
I do not know if this of interest to you but the goal of this change is to have Travis-CI automatically run flake8 tests on every pull request. This will help contributors know if their submissions are going to break the build. To turn on this free service, the repo owner would need to do steps 1 and 2 of https://docs.travis-ci.com/user/getting-started/
1 parent 792fa79 commit e4cae95

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
1+
sudo: false
2+
dist: trusty
13
language: python
24
cache: pip
35
python:
46
- "2.7.10"
5-
- "2.7.12"
7+
- "2.7.13"
68
- "3.5"
79
- "3.6"
10+
before_script:
11+
# stop the build if there are Python syntax errors or undefined names
12+
- flake8 . --count --select=E901,E999,F821,F822,F823 --statistics
13+
# exit-zero treates all errors as warnings. The GitHub editor is 127 chars wide
14+
- flake8 . --count --exit-zero --max-line-length=127 --statistics
815
install:
916
- python setup.py install
1017
- pip install pexpect

0 commit comments

Comments
 (0)