Skip to content

Commit 16a3dbf

Browse files
authored
Merge pull request #31 from cclauss/patch-3
Add flake8 to testing
2 parents f8e026a + b0327d7 commit 16a3dbf

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.travis.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,18 @@ language: python
22
python:
33
- 2.6
44
- 2.7
5-
- 3.2
6-
- 3.3
5+
- 3.4
6+
- 3.6
77
- pypy
88
install:
99
- python setup.py develop
10-
- pip install coveralls
10+
- pip install coveralls hacking
1111
- mkdir local_cache
12+
before_script:
13+
# stop the build if there are Python syntax errors or undefined names
14+
- time flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
15+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
16+
- time flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
1217
script:
1318
- SC2READER_CACHE_DIR=local_cache coverage run --source=sc2reader test_replays/test_all.py
1419
- SC2READER_CACHE_DIR=local_cache coverage run --source=sc2reader --append test_s2gs/test_all.py

0 commit comments

Comments
 (0)