File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 32
32
name : Run Pylint
33
33
conclusion : ${{ job.status }}
34
34
output : |
35
- {"summary":"${{job.status}}" , "text_description": "Job has finished"}
35
+ {"summary":"${{job.status}}" , "text_description": "Job has finished \n ${{ env.PYLINT_REPORT }} "}
36
36
annotations : |
37
37
${{ env.PYLINT_REPORT }}
Original file line number Diff line number Diff line change @@ -13,7 +13,15 @@ def run_pylint():
13
13
14
14
for item in pylint_list :
15
15
item ['annotation_level' ] = item .pop ('type' )
16
+
17
+ if item ['annotation_level' ] == "convention" :
18
+ item ['annotation_level' ] = 'notice'
19
+ elif item ['annotation_level' ] == "refactor" :
20
+ item ['annotation_level' ] = 'warning'
16
21
item ['end_line' ] = item .pop ('endLine' )
22
+ if item ['end_line' ] is None :
23
+ item .pop ('end_line' )
24
+
17
25
item ['start_line' ] = item .pop ('line' )
18
26
19
27
print (json .dumps (pylint_list ))
You can’t perform that action at this time.
0 commit comments