Skip to content

Commit c53c421

Browse files
author
liulei
committed
2 parents b5ed341 + 9568ba0 commit c53c421

6 files changed

Lines changed: 29 additions & 2 deletions

File tree

.travis.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
group: travis_latest
2+
language: python
3+
cache: pip
4+
python:
5+
- 2.7
6+
- 3.6
7+
#- nightly
8+
#- pypy
9+
#- pypy3
10+
matrix:
11+
allow_failures:
12+
- python: nightly
13+
- python: pypy
14+
- python: pypy3
15+
install:
16+
#- pip install -r requirements.txt
17+
- pip install flake8 # pytest # add another testing frameworks later
18+
before_script:
19+
# stop the build if there are Python syntax errors or undefined names
20+
- flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics
21+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
22+
- flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
23+
script:
24+
- true # pytest --capture=sys # add other tests here
25+
notifications:
26+
on_success: change
27+
on_failure: change # `always` will be the setting once code changes slow down
6.98 MB
Binary file not shown.
2.99 MB
Binary file not shown.
3.11 MB
Binary file not shown.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
if name == 'Alice':
1+
if name == 'Alice': # noqa: F821 undefined name 'name'
22
print('Hi, Alice.')
3-
elif age < 12:
3+
elif age < 12: # noqa: F821 undefined name 'age'
44
print('You are not Alice, kiddo.')
55
else:
66
print('You are neither Alice nor a little kid.')

0 commit comments

Comments
 (0)