Skip to content

Commit

Permalink
Applied latest Black
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Apr 5, 2024
1 parent dafad69 commit 6f46d5d
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions s3_credentials/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def create(
user_permissions_boundary,
silent,
dry_run,
**boto_options
**boto_options,
):
"""
Create and return new AWS credentials for specified S3 buckets - optionally
Expand Down Expand Up @@ -781,10 +781,10 @@ def iterator():
).items()
if key != "ResponseMetadata"
)
bucket_website[
"url"
] = "http://{}.s3-website.{}.amazonaws.com/".format(
bucket["Name"], region
bucket_website["url"] = (
"http://{}.s3-website.{}.amazonaws.com/".format(
bucket["Name"], region
)
)
except s3.exceptions.ClientError:
bucket_website = None
Expand Down Expand Up @@ -1272,7 +1272,7 @@ def set_cors_policy(
allowed_origins,
expose_headers,
max_age_seconds,
**boto_options
**boto_options,
):
"""
Set CORS policy for a bucket
Expand Down Expand Up @@ -1493,9 +1493,11 @@ def fix_json(row):
[
(
key,
json.dumps(value, indent=2, default=str)
if isinstance(value, (dict, list, tuple))
else value,
(
json.dumps(value, indent=2, default=str)
if isinstance(value, (dict, list, tuple))
else value
),
)
for key, value in row.items()
]
Expand Down

0 comments on commit 6f46d5d

Please sign in to comment.