@@ -88,7 +88,7 @@ def pytask_post_parse(config: dict[str, Any]) -> None:
88
88
)
89
89
config ["pm" ].register (live_execution , "live_execution" )
90
90
91
- live_collection = LiveCollection (live_manager )
91
+ live_collection = LiveCollection (live_manager = live_manager )
92
92
config ["pm" ].register (live_collection , "live_collection" )
93
93
94
94
@@ -292,18 +292,18 @@ def update_reports(self, new_report: ExecutionReport) -> None:
292
292
self ._update_table ()
293
293
294
294
295
- @attr .s (eq = False )
295
+ @attr .s (eq = False , kw_only = True )
296
296
class LiveCollection :
297
297
"""A class for managing the live status during the collection."""
298
298
299
- _live_manager = attr .ib (type = LiveManager )
299
+ live_manager = attr .ib (type = LiveManager )
300
300
_n_collected_tasks = attr .ib (default = 0 , type = int )
301
301
_n_errors = attr .ib (default = 0 , type = int )
302
302
303
303
@hookimpl (hookwrapper = True )
304
304
def pytask_collect (self ) -> Generator [None , None , None ]:
305
- """Start the status of the cllection ."""
306
- self ._live_manager .start ()
305
+ """Start the status of the collection ."""
306
+ self .live_manager .start ()
307
307
yield
308
308
309
309
@hookimpl
@@ -315,7 +315,7 @@ def pytask_collect_file_log(self, reports: list[CollectionReport]) -> None:
315
315
@hookimpl (hookwrapper = True )
316
316
def pytask_collect_log (self ) -> Generator [None , None , None ]:
317
317
"""Stop the live display when all tasks have been collected."""
318
- self ._live_manager .stop (transient = True )
318
+ self .live_manager .stop (transient = True )
319
319
yield
320
320
321
321
def _update_statistics (self , reports : list [CollectionReport ]) -> None :
@@ -331,7 +331,7 @@ def _update_statistics(self, reports: list[CollectionReport]) -> None:
331
331
def _update_status (self ) -> None :
332
332
"""Update the status."""
333
333
status = self ._generate_status ()
334
- self ._live_manager .update (status )
334
+ self .live_manager .update (status )
335
335
336
336
def _generate_status (self ) -> Status :
337
337
"""Generate the status."""
0 commit comments