Skip to content

Commit 0fa4290

Browse files
committed
fix: lint
1 parent bb6730b commit 0fa4290

File tree

4 files changed

+27
-7
lines changed

4 files changed

+27
-7
lines changed

tests/e2e/heterogeneous_clusters_kind_test.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,13 @@ def run_heterogeneous_clusters(
3333
):
3434
# Use GPU-enabled Ray image when GPUs are requested
3535
from codeflare_sdk.common.utils import constants
36-
ray_image = f"rayproject/ray:{constants.RAY_VERSION}-gpu" if number_of_gpus > 0 else f"rayproject/ray:{constants.RAY_VERSION}"
37-
36+
37+
ray_image = (
38+
f"rayproject/ray:{constants.RAY_VERSION}-gpu"
39+
if number_of_gpus > 0
40+
else f"rayproject/ray:{constants.RAY_VERSION}"
41+
)
42+
3843
for flavor in self.resource_flavors:
3944
node_labels = (
4045
get_flavor_spec(self, flavor).get("spec", {}).get("nodeLabels", {})

tests/e2e/local_interactive_sdk_kind_test.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,12 @@ def run_local_interactives(
5151

5252
# Use GPU-enabled Ray image when GPUs are requested
5353
from codeflare_sdk.common.utils import constants
54-
ray_image = f"rayproject/ray:{constants.RAY_VERSION}-gpu" if number_of_gpus > 0 else f"rayproject/ray:{constants.RAY_VERSION}"
54+
55+
ray_image = (
56+
f"rayproject/ray:{constants.RAY_VERSION}-gpu"
57+
if number_of_gpus > 0
58+
else f"rayproject/ray:{constants.RAY_VERSION}"
59+
)
5560

5661
cluster = Cluster(
5762
ClusterConfiguration(

tests/e2e/mnist_raycluster_sdk_aw_kind_test.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,13 @@ def run_mnist_raycluster_sdk_kind(
3939
):
4040
# Use GPU-enabled Ray image when GPUs are requested
4141
from codeflare_sdk.common.utils import constants
42-
ray_image = f"rayproject/ray:{constants.RAY_VERSION}-gpu" if number_of_gpus > 0 else f"rayproject/ray:{constants.RAY_VERSION}"
43-
42+
43+
ray_image = (
44+
f"rayproject/ray:{constants.RAY_VERSION}-gpu"
45+
if number_of_gpus > 0
46+
else f"rayproject/ray:{constants.RAY_VERSION}"
47+
)
48+
4449
cluster = Cluster(
4550
ClusterConfiguration(
4651
name="mnist",

tests/e2e/mnist_raycluster_sdk_kind_test.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,13 @@ def run_mnist_raycluster_sdk_kind(
3939
):
4040
# Use GPU-enabled Ray image when GPUs are requested
4141
from codeflare_sdk.common.utils import constants
42-
ray_image = f"rayproject/ray:{constants.RAY_VERSION}-gpu" if number_of_gpus > 0 else f"rayproject/ray:{constants.RAY_VERSION}"
43-
42+
43+
ray_image = (
44+
f"rayproject/ray:{constants.RAY_VERSION}-gpu"
45+
if number_of_gpus > 0
46+
else f"rayproject/ray:{constants.RAY_VERSION}"
47+
)
48+
4449
cluster = Cluster(
4550
ClusterConfiguration(
4651
name="mnist",

0 commit comments

Comments
 (0)