From f04792effb401d7672381e7bd55806a6a191d780 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=98=A4=EC=9B=90=EC=84=9D?= Date: Mon, 18 Nov 2024 13:38:52 +0900 Subject: [PATCH 1/2] update --- .gitignore | 1 + 1 file changed, 1 insertion(+) 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 From a020f76b2b68a8b1439c6ba9d173d4888e034754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=98=A4=EC=9B=90=EC=84=9D?= Date: Mon, 18 Nov 2024 13:48:26 +0900 Subject: [PATCH 2/2] reformat --- kaprese/bin/kaprese_benchmark.py | 16 ++++++++++------ kaprese/bin/kaprese_run.py | 8 +++++--- 2 files changed, 15 insertions(+), 9 deletions(-) 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: