From e6e448f6146d6aed9ad0167de235f4a4fec70df2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Dec 2025 19:15:31 +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/pre-commit/pre-commit-hooks: v5.0.0 → v6.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v5.0.0...v6.0.0) - [github.com/astral-sh/ruff-pre-commit: v0.8.6 → v0.14.7](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.6...v0.14.7) - [github.com/pre-commit/mirrors-mypy: v1.14.1 → v1.19.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.14.1...v1.19.0) --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c63f358..630b4cc 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,6 +1,6 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v5.0.0 + rev: v6.0.0 hooks: - id: trailing-whitespace - id: end-of-file-fixer @@ -9,13 +9,13 @@ repos: - id: debug-statements - id: check-ast - repo: https://github.com/astral-sh/ruff-pre-commit - rev: "v0.8.6" + rev: "v0.14.7" hooks: - id: ruff args: ["--fix"] - id: ruff-format - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.14.1" + rev: "v1.19.0" hooks: - id: mypy additional_dependencies: From caa95f405e1ef18557c4dfb72ee827aab6dcb3e5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Dec 2025 19:16:43 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/test_collection.py | 2 +- tests/test_node_usage.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_collection.py b/tests/test_collection.py index 7ab793c..cf2c398 100644 --- a/tests/test_collection.py +++ b/tests/test_collection.py @@ -250,7 +250,7 @@ def test_load_recent_data_raw(self, tmp_path: Path, test_dates: dict[str, str], test_data = [] for i in range(3): - record_dict = {field: "" for field in fields} + record_dict = dict.fromkeys(fields, "") record_dict["JobIDRaw"] = f"job_{i}" record_dict["User"] = f"user{i}" test_data.append(record_dict) diff --git a/tests/test_node_usage.py b/tests/test_node_usage.py index 79ecf6c..1feae46 100644 --- a/tests/test_node_usage.py +++ b/tests/test_node_usage.py @@ -61,7 +61,7 @@ def test_extract_node_usage_multi_node(self) -> None: # Each node should get 1/4 of the resources result_dicts = result.to_dicts() for i, node_data in enumerate(result_dicts): - assert node_data["node"] == f"node00{i+1}" + assert node_data["node"] == f"node00{i + 1}" assert node_data["cpu_hours"] == 25.0 # 100/4 assert node_data["gpu_hours"] == 5.0 # 20/4 assert node_data["elapsed_hours"] == 0.5 # 2/4