| 
14 | 14 |     ML_REPO_ISSUES_URL,  | 
15 | 15 |     OX_MARKDOWN_LINK,  | 
16 | 16 | )  | 
17 |  | -from pytablewriter import MarkdownTableWriter  | 
 | 17 | +from pytablewriter import Align, MarkdownTableWriter  | 
 | 18 | +from pytablewriter.style import Style  | 
18 | 19 | from redis import Redis  | 
19 | 20 | 
 
  | 
20 | 21 | 
 
  | 
21 | 22 | def build_markdown_summary(reporter_self, action_run_url=""):  | 
22 | 23 |     table_header = ["Descriptor", "Linter", "Files", "Fixed", "Errors", "Warnings"]  | 
 | 24 | +    table_column_styles = [  | 
 | 25 | +        Style(align=Align.LEFT),  | 
 | 26 | +        Style(align=Align.LEFT),  | 
 | 27 | +        Style(align=Align.RIGHT),  | 
 | 28 | +        Style(align=Align.RIGHT),  | 
 | 29 | +        Style(align=Align.RIGHT),  | 
 | 30 | +        Style(align=Align.RIGHT),  | 
 | 31 | +    ]  | 
23 | 32 |     if reporter_self.master.show_elapsed_time is True:  | 
24 | 33 |         table_header += ["Elapsed time"]  | 
25 |  | -    table_data_raw = [table_header]  | 
 | 34 | +        table_column_styles += [Style(align=Align.RIGHT)]  | 
 | 35 | +    table_data_raw = []  | 
26 | 36 |     for linter in reporter_self.master.linters:  | 
27 | 37 |         if linter.is_active is True:  | 
28 | 38 |             status = (  | 
@@ -82,7 +92,11 @@ def build_markdown_summary(reporter_self, action_run_url=""):  | 
82 | 92 |             table_data_raw += [table_line]  | 
83 | 93 |     # Build markdown table  | 
84 | 94 |     table_data_raw.pop(0)  | 
85 |  | -    writer = MarkdownTableWriter(headers=table_header, value_matrix=table_data_raw)  | 
 | 95 | +    writer = MarkdownTableWriter(  | 
 | 96 | +        headers=table_header,  | 
 | 97 | +        column_styles=table_column_styles,  | 
 | 98 | +        value_matrix=table_data_raw,  | 
 | 99 | +    )  | 
86 | 100 |     table_content = str(writer)  | 
87 | 101 |     status = (  | 
88 | 102 |         "✅"  | 
 | 
0 commit comments