Skip to content

Commit eac9d22

Browse files
Ameen KhanZhankuil
Ameen Khan
authored andcommitted
Fixed formatting issues
1 parent 5afcfab commit eac9d22

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

src/sagemaker/workflow/pipeline.py

+2-7
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,7 @@ def create(
121121
return self.sagemaker_session.sagemaker_client.create_pipeline(**kwargs)
122122

123123
def _create_args(
124-
self,
125-
role_arn: str,
126-
description: str,
127-
parallelism_config: ParallelismConfiguration
124+
self, role_arn: str, description: str, parallelism_config: ParallelismConfiguration
128125
):
129126
"""Constructs the keyword argument dict for a create_pipeline call.
130127
@@ -163,9 +160,7 @@ def _create_args(
163160
}
164161

165162
update_args(
166-
kwargs,
167-
PipelineDescription=description,
168-
ParallelismConfiguration=parallelism_config
163+
kwargs, PipelineDescription=description, ParallelismConfiguration=parallelism_config
169164
)
170165
return kwargs
171166

tests/integ/test_workflow.py

+6-4
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@
9090
)
9191
from sagemaker.workflow.step_collections import RegisterModel
9292
from sagemaker.workflow.pipeline import Pipeline
93-
from sagemaker.workflow.parallelism_config import ParallelismConfiguration
9493
from sagemaker.lambda_helper import Lambda
9594
from sagemaker.feature_store.feature_group import FeatureGroup, FeatureDefinition, FeatureTypeEnum
9695
from tests.integ import DATA_DIR
@@ -2771,7 +2770,8 @@ def test_large_pipeline(sagemaker_session, role, pipeline_name, region_name):
27712770
sqs_queue_url="https://sqs.us-east-2.amazonaws.com/123456789012/MyQueue",
27722771
inputs={"arg1": "foo"},
27732772
outputs=[outputParam],
2774-
) for count in range(2000)
2773+
)
2774+
for count in range(2000)
27752775
]
27762776
pipeline = Pipeline(
27772777
name=pipeline_name,
@@ -2803,7 +2803,10 @@ def test_large_pipeline(sagemaker_session, role, pipeline_name, region_name):
28032803
except Exception:
28042804
pass
28052805

2806-
def test_create_and_update_with_parallelism_config(sagemaker_session, role, pipeline_name, region_name):
2806+
2807+
def test_create_and_update_with_parallelism_config(
2808+
sagemaker_session, role, pipeline_name, region_name
2809+
):
28072810
instance_count = ParameterInteger(name="InstanceCount", default_value=2)
28082811

28092812
outputParam = CallbackOutput(output_name="output", output_type=CallbackOutputTypeEnum.String)
@@ -2824,7 +2827,6 @@ def test_create_and_update_with_parallelism_config(sagemaker_session, role, pipe
28242827
sagemaker_session=sagemaker_session,
28252828
)
28262829

2827-
28282830
try:
28292831
response = pipeline.create(role, parallelism_config={"MaxParallelExecutionSteps": 50})
28302832
create_arn = response["PipelineArn"]

0 commit comments

Comments
 (0)