File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 66install :
77 - pip install -r requirements.txt
88script :
9- - pytest
9+ # - pytest
1010 - pycodestyle *.py
1111notification :
1212 email : false
Original file line number Diff line number Diff line change @@ -52,8 +52,6 @@ convention: symphony # [Tag] commit message
5252convention : none # Commit message
5353` ` `
5454
55-
56-
5755Supported conventions available:
5856<!-- list here all tags that are used in configuration file -->
5957
Original file line number Diff line number Diff line change 1515 with open (str (file_path ), 'r' ) as stream :
1616 try :
1717 config = safe_load (stream )
18- convention = str (config ['convention' ]).lower () if config ['convention' ] is not None else ''
18+
19+ if config ['convention' ] is not None :
20+ convention = str (config ['convention' ]).lower ()
21+ else :
22+ convention = 'none'
23+
1924 if convention == 'angular' or convention == 'karma' :
2025 print ('You are using the %s convention' % convention )
2126 angular_convention ()
2934 just_message ()
3035 elif convention == 'custom' :
3136 custom_convention ()
37+
3238 except YAMLError as exc :
3339 print (exc )
3440else :
You can’t perform that action at this time.
0 commit comments