Skip to content

Commit 7370871

Browse files
author
Ameen Khan
committed
Fixed formatting issues
1 parent bc7573d commit 7370871

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

src/sagemaker/workflow/pipeline.py

Lines changed: 2 additions & 7 deletions
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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@
7272
)
7373
from sagemaker.workflow.step_collections import RegisterModel
7474
from sagemaker.workflow.pipeline import Pipeline
75-
from sagemaker.workflow.parallelism_config import ParallelismConfiguration
7675
from sagemaker.lambda_helper import Lambda
7776
from sagemaker.feature_store.feature_group import FeatureGroup, FeatureDefinition, FeatureTypeEnum
7877
from tests.integ import DATA_DIR
@@ -2303,7 +2302,8 @@ def test_large_pipeline(sagemaker_session, role, pipeline_name, region_name):
23032302
sqs_queue_url="https://sqs.us-east-2.amazonaws.com/123456789012/MyQueue",
23042303
inputs={"arg1": "foo"},
23052304
outputs=[outputParam],
2306-
) for count in range(2000)
2305+
)
2306+
for count in range(2000)
23072307
]
23082308
pipeline = Pipeline(
23092309
name=pipeline_name,
@@ -2335,7 +2335,10 @@ def test_large_pipeline(sagemaker_session, role, pipeline_name, region_name):
23352335
except Exception:
23362336
pass
23372337

2338-
def test_create_and_update_with_parallelism_config(sagemaker_session, role, pipeline_name, region_name):
2338+
2339+
def test_create_and_update_with_parallelism_config(
2340+
sagemaker_session, role, pipeline_name, region_name
2341+
):
23392342
instance_count = ParameterInteger(name="InstanceCount", default_value=2)
23402343

23412344
outputParam = CallbackOutput(output_name="output", output_type=CallbackOutputTypeEnum.String)
@@ -2356,7 +2359,6 @@ def test_create_and_update_with_parallelism_config(sagemaker_session, role, pipe
23562359
sagemaker_session=sagemaker_session,
23572360
)
23582361

2359-
23602362
try:
23612363
response = pipeline.create(role, parallelism_config={"MaxParallelExecutionSteps": 50})
23622364
create_arn = response["PipelineArn"]

0 commit comments

Comments
 (0)