Skip to content

Commit

Permalink
chore(pylint): add pylint to travis CI
Browse files Browse the repository at this point in the history
In the current implementation, not fatal, critical or warning errors are tolerated.

Closes #2
  • Loading branch information
SyntaxRules authored May 25, 2017
1 parent 6713819 commit deb8329
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
6 changes: 4 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ install:
- pip install -r requirements.txt
- pip install codecov
# command to run tests
script: python -m pytest . --cov=starter --cov-report term --cov-report xml
script:
- pylint --ignore-patterns=test* starter || [[ $? == 0 || $? -ge 8 ]]
- python -m pytest . --cov=starter --cov-report term-missing --cov-report xml
after_success:
- codecov
- codecov
5 changes: 4 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
pytest-cov
pytest
pytest-cov
mock
pylint
11 changes: 11 additions & 0 deletions starter/starter.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,22 @@ class StartExample(object):
"""

def __init__(self):
"""
Starter Example constructor. Used to setup before running.
"""
self.location = "World"

def run(self):
"""
Run your application.
:return:
"""
self.print_version()
print("Hello {}!".format(self.location))

def print_version(self):
"""
Print the version
:return:
"""
print("Version: {}".format(__version__))

0 comments on commit deb8329

Please sign in to comment.