Skip to content

Commit 1fdfbf3

Browse files
committed
Format for black
1 parent cad96b2 commit 1fdfbf3

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

citc/google.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ def get_types_info(client, nodespace):
106106
"memory": int(math.pow(mt["memoryMb"], 0.7) * 0.9 + 500),
107107
"cores_per_socket": mt["guestCpus"],
108108
"threads_per_core": "1",
109-
"cluster_group": mt["name"].startswith("c2-") # only C2 currently support compact placement groups
109+
# only C2 currently support compact placement groups
110+
"cluster_group": mt["name"].startswith("c2-"),
110111
}
111112
for mt in machine_types
112113
}

tests/test_list_nodes.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ def test_create_table():
1111
SlurmNode(name="foo-1", state="idle", state_flag=None, features={}, reason=""),
1212
SlurmNode(name="foo-2", state="idle", state_flag="~", features={}, reason=""),
1313
]
14-
cloud_nodes = [AwsNode(name="foo-1", state=NodeState.RUNNING, ip="10.0.0.25", id="i-foobar")]
14+
cloud_nodes = [
15+
AwsNode(name="foo-1", state=NodeState.RUNNING, ip="10.0.0.25", id="i-foobar")
16+
]
1517
table, headers = create_table(slurm_nodes, cloud_nodes)
1618
assert table == [
1719
["foo-1", "idle", "", NodeState.RUNNING],
@@ -24,6 +26,8 @@ def test_print_table():
2426
slurm_nodes = [
2527
SlurmNode(name="foo-1", state="idle", state_flag=None, features={}, reason="")
2628
]
27-
cloud_nodes = [AwsNode(name="foo-1", state=NodeState.RUNNING, ip="10.0.0.25", id="i-foobar")]
29+
cloud_nodes = [
30+
AwsNode(name="foo-1", state=NodeState.RUNNING, ip="10.0.0.25", id="i-foobar")
31+
]
2832
table_data = create_table(slurm_nodes, cloud_nodes)
2933
print(tabulate(table_data))

tests/test_watchdog.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ def test_crosscheck_one_match():
1717
slurm_nodes = [
1818
SlurmNode(name="foo-1", state="idle", state_flag=None, features={}, reason="")
1919
]
20-
cloud_nodes = [AwsNode(name="foo-1", state=NodeState.RUNNING, ip="10.0.0.25", id="i-foobar")]
20+
cloud_nodes = [
21+
AwsNode(name="foo-1", state=NodeState.RUNNING, ip="10.0.0.25", id="i-foobar")
22+
]
2123

2224
res = crosscheck(slurm_nodes, cloud_nodes)
2325
res = list(res)

0 commit comments

Comments
 (0)