From 73dbcfda1e0573050721a28ed9c84e632f2da240 Mon Sep 17 00:00:00 2001 From: Eric Brown Date: Mon, 26 Aug 2024 21:06:35 -0700 Subject: [PATCH] Remove the unnecessary console object on Run The Run class doesn't need a rich.Console instance for any reason. This change removes it and cleans up the calls to run. Signed-off-by: Eric Brown --- precli/cli/main.py | 2 +- precli/core/run.py | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/precli/cli/main.py b/precli/cli/main.py index 6ef05bc8..d0597e80 100644 --- a/precli/cli/main.py +++ b/precli/cli/main.py @@ -352,7 +352,7 @@ def main(): ) # Invoke the run - run = Run(enabled, disabled, artifacts, console, debug) + run = Run(enabled, disabled, artifacts, debug) run.invoke() # Render the results diff --git a/precli/core/run.py b/precli/core/run.py index b00c4a85..af7a7eba 100644 --- a/precli/core/run.py +++ b/precli/core/run.py @@ -9,7 +9,6 @@ from multiprocessing import Pool from pygments import lexers -from rich.console import Console from rich.progress import BarColumn from rich.progress import MofNCompleteColumn from rich.progress import Progress @@ -116,13 +115,11 @@ def __init__( enabled: list[str], disabled: list[str], artifacts: list[Artifact], - console: Console, debug: int, ): self._enabled = enabled self._disabled = disabled self._artifacts = artifacts - self._console = console self._init_logger(debug) self._start_time = None self._end_time = None