File tree 3 files changed +19
-3
lines changed
3 files changed +19
-3
lines changed Original file line number Diff line number Diff line change 7
7
- pip install -r requirements.txt
8
8
- pip install codecov
9
9
# 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
11
13
after_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):
16
16
"""
17
17
18
18
def __init__ (self ):
19
+ """
20
+ Starter Example constructor. Used to setup before running.
21
+ """
19
22
self .location = "World"
20
23
21
24
def run (self ):
25
+ """
26
+ Run your application.
27
+ :return:
28
+ """
22
29
self .print_version ()
23
30
print ("Hello {}!" .format (self .location ))
24
31
25
32
def print_version (self ):
33
+ """
34
+ Print the version
35
+ :return:
36
+ """
26
37
print ("Version: {}" .format (__version__ ))
You can’t perform that action at this time.
0 commit comments