From 07b42e5136ba39ad82afc3a2169a6ec854b856f5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 21:52:14 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.9.1](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.9.1) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1699220..76d8dda 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.6 + rev: v0.9.1 hooks: - id: ruff name: ruff linter From 0fba5baa4ee8763dcb32e5c137a4335a706e64c9 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 13 Jan 2025 21:52:22 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- template/utils/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/template/utils/config.py b/template/utils/config.py index 1132670..fc6b4ec 100644 --- a/template/utils/config.py +++ b/template/utils/config.py @@ -44,9 +44,9 @@ def sys_info(fid: IO | None = None, developer: bool = False): out("Logical cores:".ljust(ljust) + str(psutil.cpu_count(True)) + "\n") # memory information out("RAM:".ljust(ljust)) - out(f"{psutil.virtual_memory().total / float(2 ** 30):0.1f} GB\n") + out(f"{psutil.virtual_memory().total / float(2**30):0.1f} GB\n") out("SWAP:".ljust(ljust)) - out(f"{psutil.swap_memory().total / float(2 ** 30):0.1f} GB\n") + out(f"{psutil.swap_memory().total / float(2**30):0.1f} GB\n") # package information out(f"{package}:".ljust(ljust) + version(package) + "\n")