@@ -85,6 +85,7 @@ def pytask_post_parse(config: dict[str, Any]) -> None:
8585 n_entries_in_table = config ["n_entries_in_table" ],
8686 verbose = config ["verbose" ],
8787 editor_url_scheme = config ["editor_url_scheme" ],
88+ sort_final_table = config ["sort_table" ],
8889 )
8990 config ["pm" ].register (live_execution , "live_execution" )
9091
@@ -156,6 +157,7 @@ class LiveExecution:
156157 n_entries_in_table = attr .ib (type = int )
157158 verbose = attr .ib (type = int )
158159 editor_url_scheme = attr .ib (type = str )
160+ sort_final_table = attr .ib (default = False , type = bool )
159161 n_tasks = attr .ib (default = "x" , type = Union [int , str ])
160162 _reports = attr .ib (factory = list , type = List [Dict [str , Any ]])
161163 _running_tasks = attr .ib (factory = dict , type = Dict [str , Task ])
@@ -168,7 +170,7 @@ def pytask_execute_build(self) -> Generator[None, None, None]:
168170 yield
169171 self .live_manager .stop (transient = True )
170172 table = self ._generate_table (
171- reduce_table = False , sort_table = True , add_caption = False
173+ reduce_table = False , sort_table = self . sort_final_table , add_caption = False
172174 )
173175 if table is not None :
174176 console .print (table )
0 commit comments