Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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.6"
hooks:
- id: ruff
args: ["--fix"]
- id: ruff-format
- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.14.1"
rev: "v1.18.2"
hooks:
- id: mypy
additional_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_node_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading