File tree Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Expand file tree Collapse file tree 3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 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
1113after_success :
12- - codecov
14+ - codecov
Original file line number Diff line number Diff line change 1- pytest-cov
1+ pytest
2+ pytest-cov
3+ mock
4+ pylint
Original file line number Diff line number Diff 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__ ))
You can’t perform that action at this time.
0 commit comments