Skip to content

Commit d2d0126

Browse files
committed
syntax
Signed-off-by: Isaac Milarsky <[email protected]>
1 parent 3c1f2b5 commit d2d0126

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

.github/workflows/checks.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ jobs:
3232
name: Run Pylint
3333
conclusion: ${{ job.status }}
3434
output: |
35-
{"summary":"${{job.status}}" , "text_description": "Job has finished"}
35+
{"summary":"${{job.status}}" , "text_description": "Job has finished \n ${{ env.PYLINT_REPORT }}"}
3636
annotations: |
3737
${{ env.PYLINT_REPORT }}

scripts/tests/metrics_tests.py

+8
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,15 @@ def run_pylint():
1313

1414
for item in pylint_list:
1515
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'
1621
item['end_line'] = item.pop('endLine')
22+
if item['end_line'] is None:
23+
item.pop('end_line')
24+
1725
item['start_line'] = item.pop('line')
1826

1927
print(json.dumps(pylint_list))

0 commit comments

Comments
 (0)