Skip to content

Commit 69cb025

Browse files
committed
Linting
1 parent a7b7a39 commit 69cb025

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/sagemaker/estimator.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,9 @@ def __init__(
585585
or security_group_ids is not None
586586
and subnets is None
587587
):
588-
raise RuntimeError("When setting up custom VPC, both subnets and security_group_ids must be set")
588+
raise RuntimeError(
589+
"When setting up custom VPC, both subnets and security_group_ids must be set"
590+
)
589591

590592
if self.instance_type in ("local", "local_gpu"):
591593
if self.instance_type == "local_gpu" and self.instance_count > 1:

tests/unit/test_estimator.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def test_subnets_without_security_groups(sagemaker_session):
512512
DummyFramework(
513513
entry_point=SCRIPT_PATH,
514514
sagemaker_session=sagemaker_session,
515-
subnets=['123'],
515+
subnets=["123"],
516516
)
517517

518518

@@ -521,7 +521,7 @@ def test_security_groups_without_subnets(sagemaker_session):
521521
DummyFramework(
522522
entry_point=SCRIPT_PATH,
523523
sagemaker_session=sagemaker_session,
524-
security_group_ids=['123'],
524+
security_group_ids=["123"],
525525
)
526526

527527

0 commit comments

Comments
 (0)