Skip to content

Commit d2a8160

Browse files
committed
fix formatting
1 parent f93ee5d commit d2a8160

File tree

5 files changed

+15
-9
lines changed

5 files changed

+15
-9
lines changed

src/sagemaker/workflow/_utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,8 @@ def __init__(
252252
compile_model_family (str): Instance family for compiled model, if specified, a compiled
253253
model will be used (default: None).
254254
description (str): Model Package description (default: None).
255-
depends_on (List[str]): A list of step names this `sagemaker.workflow.steps.TrainingStep` depends on
255+
depends_on (List[str]): A list of step names this `sagemaker.workflow.steps.TrainingStep`
256+
depends on
256257
**kwargs: additional arguments to `create_model`.
257258
"""
258259
super(_RegisterModelStep, self).__init__(name, StepTypeEnum.REGISTER_MODEL, depends_on)

src/sagemaker/workflow/step_collections.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ def __init__(
8181
generate inferences in real-time (default: None).
8282
transform_instances (list): A list of the instance types on which a transformation
8383
job can be run or on which an endpoint can be deployed (default: None).
84-
depends_on (List[str]): The list of step names the first step in the collection depends on
84+
depends_on (List[str]): The list of step names the first step in the collection
85+
depends on
8586
model_package_group_name (str): The Model Package Group name, exclusive to
8687
`model_package_name`, using `model_package_group_name` makes the Model Package
8788
versioned (default: None).
@@ -205,7 +206,8 @@ def __init__(
205206
it will be the format of the batch transform output.
206207
env (dict): The Environment variables to be set for use during the
207208
transform job (default: None).
208-
depends_on (List[str]): The list of step names the first step in the collection depends on
209+
depends_on (List[str]): The list of step names the first step in
210+
the collection depends on
209211
"""
210212
steps = []
211213
if "entry_point" in kwargs:

src/sagemaker/workflow/steps.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ def __init__(
158158
estimator (EstimatorBase): A `sagemaker.estimator.EstimatorBase` instance.
159159
inputs (TrainingInput): A `sagemaker.inputs.TrainingInput` instance. Defaults to `None`.
160160
cache_config (CacheConfig): A `sagemaker.workflow.steps.CacheConfig` instance.
161-
depends_on (List[str]): A list of step names this `sagemaker.workflow.steps.TrainingStep` depends on
161+
depends_on (List[str]): A list of step names this `sagemaker.workflow.steps.TrainingStep`
162+
depends on
162163
"""
163164
super(TrainingStep, self).__init__(name, StepTypeEnum.TRAINING, depends_on)
164165
self.estimator = estimator
@@ -215,7 +216,8 @@ def __init__(
215216
model (Model): A `sagemaker.model.Model` instance.
216217
inputs (CreateModelInput): A `sagemaker.inputs.CreateModelInput` instance.
217218
Defaults to `None`.
218-
depends_on (List[str]): A list of step names this `sagemaker.workflow.steps.CreateModelStep` depends on
219+
depends_on (List[str]): A list of step names this `sagemaker.workflow.steps.CreateModelStep`
220+
depends on
219221
"""
220222
super(CreateModelStep, self).__init__(name, StepTypeEnum.CREATE_MODEL, depends_on)
221223
self.model = model
@@ -272,7 +274,8 @@ def __init__(
272274
transformer (Transformer): A `sagemaker.transformer.Transformer` instance.
273275
inputs (TransformInput): A `sagemaker.inputs.TransformInput` instance.
274276
cache_config (CacheConfig): A `sagemaker.workflow.steps.CacheConfig` instance.
275-
depends_on (List[str]): A list of step names this `sagemaker.workflow.steps.TransformStep` depends on
277+
depends_on (List[str]): A list of step names this `sagemaker.workflow.steps.TransformStep`
278+
depends on
276279
"""
277280
super(TransformStep, self).__init__(name, StepTypeEnum.TRANSFORM, depends_on)
278281
self.transformer = transformer
@@ -356,7 +359,8 @@ def __init__(
356359
property_files (List[PropertyFile]): A list of property files that workflow looks
357360
for and resolves from the configured processing output list.
358361
cache_config (CacheConfig): A `sagemaker.workflow.steps.CacheConfig` instance.
359-
depends_on (List[str]): A list of step names this `sagemaker.workflow.steps.ProcessingStep` depends on
362+
depends_on (List[str]): A list of step names this `sagemaker.workflow.steps.ProcessingStep`
363+
depends on
360364
"""
361365
super(ProcessingStep, self).__init__(name, StepTypeEnum.PROCESSING, depends_on)
362366
self.processor = processor

tests/integ/test_workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
rule_configs,
2929
)
3030
from datetime import datetime
31-
from sagemaker.inputs import CreateModelInput, TrainingInput, TransformInput
31+
from sagemaker.inputs import CreateModelInput, TrainingInput
3232
from sagemaker.model import Model
3333
from sagemaker.processing import ProcessingInput, ProcessingOutput
3434
from sagemaker.pytorch.estimator import PyTorch

tests/unit/sagemaker/workflow/test_step_collections.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
StepCollection,
4444
RegisterModel,
4545
)
46-
from sagemaker.workflow.pipeline import Pipeline
4746
from tests.unit.sagemaker.workflow.helpers import ordered
4847

4948
REGION = "us-west-2"

0 commit comments

Comments
 (0)