Skip to content

Commit 5ff5b0e

Browse files
committed
linting fixes
1 parent f88758b commit 5ff5b0e

File tree

3 files changed

+23
-23
lines changed

3 files changed

+23
-23
lines changed

python/example_code/s3-directory-buckets/s3_express_getting_started.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
logger = logging.getLogger(__name__)
2424

25-
25+
no_art = False
2626
def print_dashes():
2727
"""
2828
Print a line of dashes to separate sections of the output.

python/example_code/s3-directory-buckets/tests/conftest.py

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,14 @@ class ScenarioData:
2929
def __init__(
3030
self,
3131
ec2_client,
32-
s3_client,
33-
iam_client,
32+
s3_client,
33+
iam_client,
3434
cloud_formation_resource,
35-
ec2_stubber,
36-
s3_stubber,
37-
iam_stubber,
38-
35+
ec2_stubber,
36+
s3_stubber,
37+
iam_stubber,
3938
cloud_formation_stubber,
40-
region,
39+
region,
4140
):
4241
self.ec2_client = ec2_client
4342
self.s3_client = s3_client
@@ -50,8 +49,8 @@ def __init__(
5049
self.region = region
5150
self.scenario = s3_express_getting_started.S3ExpressScenario(
5251
cloud_formation_resource=self.cloud_formation_resource,
53-
ec2_client = self.ec2_client,
54-
iam_client = self.iam_client,
52+
ec2_client=self.ec2_client,
53+
iam_client=self.iam_client,
5554
)
5655
s3_express_getting_started.use_press_enter_to_continue = False
5756

@@ -70,13 +69,13 @@ def scenario_data(make_stubber):
7069
s3_client = boto3.client("s3")
7170
s3_stubber = make_stubber(s3_client)
7271
return ScenarioData(
73-
ec2_client = ec2_client,
74-
s3_client = s3_client,
75-
iam_client = iam_client,
76-
cloud_formation_resource = cloud_formation_resource,
77-
ec2_stubber = ec2_stubber,
78-
s3_stubber = s3_stubber,
79-
iam_stubber = iam_stubber,
80-
cloud_formation_stubber = cloud_formation_stubber,
81-
region = region
72+
ec2_client=ec2_client,
73+
s3_client=s3_client,
74+
iam_client=iam_client,
75+
cloud_formation_resource=cloud_formation_resource,
76+
ec2_stubber=ec2_stubber,
77+
s3_stubber=s3_stubber,
78+
iam_stubber=iam_stubber,
79+
cloud_formation_stubber=cloud_formation_stubber,
80+
region=region,
8281
)

python/test_tools/ec2_stubber.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,13 @@ def stub_create_vpc(self, cidr, vpc_id, error_code=None):
481481
self._stub_bifurcator(
482482
"create_vpc", expected_params, response, error_code=error_code
483483
)
484-
484+
485485
def stub_delete_vpc(self, vpc_id, error_code=None):
486486
expected_params = {"VpcId": vpc_id}
487487
response = {}
488-
self._stub_bifurcator("delete_vpc", expected_params, response, error_code=error_code)
488+
self._stub_bifurcator(
489+
"delete_vpc", expected_params, response, error_code=error_code
490+
)
489491

490492
def stub_describe_route_tables(
491493
self, filters, vpc_id, route_table_id, error_code=None
@@ -575,8 +577,7 @@ def stub_create_vpc_endpoint(
575577

576578
def stub_delete_vpc_endpoints(self, vpc_endpoint_ids, error_code=None):
577579
expected_params = {"VpcEndpointIds": vpc_endpoint_ids}
578-
response = {
579-
}
580+
response = {}
580581
self._stub_bifurcator(
581582
"delete_vpc_endpoints", expected_params, response, error_code=error_code
582583
)

0 commit comments

Comments
 (0)