Skip to content

Commit 78806e2

Browse files
committed
Formatting update via pre commit
Signed-off-by: Pat O'Connor <[email protected]>
1 parent 50f7b36 commit 78806e2

File tree

3 files changed

+316
-196
lines changed

3 files changed

+316
-196
lines changed

src/codeflare_sdk/ray/cluster/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,7 +1061,7 @@ def get_cluster(
10611061
# Create a temporary config with appwrapper=False to ensure build_ray_cluster returns RayCluster YAML
10621062
temp_cluster_config_dict = cluster_config.dict(exclude_none=True)
10631063
temp_cluster_config_dict["appwrapper"] = False
1064-
# Set overwrite_default_resource_mapping=True to avoid conflicts when extended_resource_mapping
1064+
# Set overwrite_default_resource_mapping=True to avoid conflicts when extended_resource_mapping
10651065
# already contains the combined default and custom mappings from the original object
10661066
temp_cluster_config_dict["overwrite_default_resource_mapping"] = True
10671067
temp_cluster_config_for_spec = ClusterConfiguration(**temp_cluster_config_dict)

src/codeflare_sdk/ray/cluster/config.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,14 +293,15 @@ def check_type(value, expected_type):
293293
def dict(self, exclude_none: bool = False):
294294
"""
295295
Convert the ClusterConfiguration to a dictionary.
296-
296+
297297
Args:
298298
exclude_none (bool): If True, exclude fields with None values.
299-
299+
300300
Returns:
301301
dict: Dictionary representation of the ClusterConfiguration.
302302
"""
303303
import dataclasses
304+
304305
result = dataclasses.asdict(self)
305306
if exclude_none:
306307
result = {k: v for k, v in result.items() if v is not None}

0 commit comments

Comments
 (0)