diff --git a/.gitignore b/.gitignore index 7fbf3da..79e72ee 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ __pycache__/ *.py[cod] *$py.class +.python-version # C extensions *.so diff --git a/kaprese/bin/kaprese_benchmark.py b/kaprese/bin/kaprese_benchmark.py index 6044df8..95d85c7 100644 --- a/kaprese/bin/kaprese_benchmark.py +++ b/kaprese/bin/kaprese_benchmark.py @@ -101,13 +101,17 @@ def main( benchmark.name, benchmark.image, "yes" if benchmark.availability else "[grey23]no[/grey23]", - language - if (language := benchmark.language) - else "[grey23]n/a[/grey23]", + ( + language + if (language := benchmark.language) + else "[grey23]n/a[/grey23]" + ), os if (os := benchmark.os) else "[grey23]n/a[/grey23]", - workdir - if (workdir := benchmark.workdir) - else "[grey23]n/a[/grey23]", + ( + workdir + if (workdir := benchmark.workdir) + else "[grey23]n/a[/grey23]" + ), ) benchmark.save() console.print(table) diff --git a/kaprese/bin/kaprese_run.py b/kaprese/bin/kaprese_run.py index a047de6..32f8113 100644 --- a/kaprese/bin/kaprese_run.py +++ b/kaprese/bin/kaprese_run.py @@ -74,9 +74,11 @@ def __rich_console__( or self._status == "Checking" or self._status == "Preparing" ): - yield self._spinner.render( - console.get_time() - ) if self._spinner is not None else f"{self._status}..." + yield ( + self._spinner.render(console.get_time()) + if self._spinner is not None + else f"{self._status}..." + ) elif self._status == "OK": yield Text(self._status, style="green") else: