Skip to content

Commit 5b4e9b7

Browse files
committed
Linting
1 parent f5a98dd commit 5b4e9b7

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
@@ -517,7 +517,7 @@ def test_subnets_without_security_groups(sagemaker_session):
517517
DummyFramework(
518518
entry_point=SCRIPT_PATH,
519519
sagemaker_session=sagemaker_session,
520-
subnets=['123'],
520+
subnets=["123"],
521521
)
522522

523523

@@ -526,7 +526,7 @@ def test_security_groups_without_subnets(sagemaker_session):
526526
DummyFramework(
527527
entry_point=SCRIPT_PATH,
528528
sagemaker_session=sagemaker_session,
529-
security_group_ids=['123'],
529+
security_group_ids=["123"],
530530
)
531531

532532

0 commit comments

Comments
 (0)