Skip to content

Commit deb8329

Browse files
authored
chore(pylint): add pylint to travis CI
In the current implementation, not fatal, critical or warning errors are tolerated. Closes #2
1 parent 6713819 commit deb8329

File tree

3 files changed

+19
-3
lines changed

3 files changed

+19
-3
lines changed

.travis.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ install:
77
- pip install -r requirements.txt
88
- pip install codecov
99
# command to run tests
10-
script: python -m pytest . --cov=starter --cov-report term --cov-report xml
10+
script:
11+
- pylint --ignore-patterns=test* starter || [[ $? == 0 || $? -ge 8 ]]
12+
- python -m pytest . --cov=starter --cov-report term-missing --cov-report xml
1113
after_success:
12-
- codecov
14+
- codecov

requirements.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
pytest-cov
1+
pytest
2+
pytest-cov
3+
mock
4+
pylint

starter/starter.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,22 @@ class StartExample(object):
1616
"""
1717

1818
def __init__(self):
19+
"""
20+
Starter Example constructor. Used to setup before running.
21+
"""
1922
self.location = "World"
2023

2124
def run(self):
25+
"""
26+
Run your application.
27+
:return:
28+
"""
2229
self.print_version()
2330
print("Hello {}!".format(self.location))
2431

2532
def print_version(self):
33+
"""
34+
Print the version
35+
:return:
36+
"""
2637
print("Version: {}".format(__version__))

0 commit comments

Comments
 (0)