Skip to content

Commit 5db2d1e

Browse files
committed
Apply ruff formatting
1 parent 40458ee commit 5db2d1e

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

aws/s3rm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def delete_objects(sess, iterator):
4444

4545
def print_result():
4646
print(
47-
f'{humanize.intcomma(total_deleted_count)} object{"s" if total_deleted_count != 1 else ""} deleted, total {humanize.naturalsize(total_deleted_size)}'
47+
f"{humanize.intcomma(total_deleted_count)} object{'s' if total_deleted_count != 1 else ''} deleted, total {humanize.naturalsize(total_deleted_size)}"
4848
)
4949

5050
def delete_batch(batch):

aws/s3tree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def pprint_s3tree(*, bucket, tree):
207207

208208
print(
209209
termcolor.colored(
210-
f'{humanize.intcomma(len(s3_objects))} object{"s" if len(s3_objects) > 1 else ""}, '
210+
f"{humanize.intcomma(len(s3_objects))} object{'s' if len(s3_objects) > 1 else ''}, "
211211
f"totalling {humanize.naturalsize(total_size)}, "
212212
f"last modified {last_modified_message}",
213213
"green",

images/tint_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
tinted_im.putdata([(red, green, blue, 255 - p[0]) for p in pixels])
3737

3838
name, _ = path.rsplit(".", 1)
39-
out_path = f'{name}.{hex_colour.strip("#")}.png'
39+
out_path = f"{name}.{hex_colour.strip('#')}.png"
4040

4141
tinted_im.save(out_path)
4242
print(out_path)

textexpander/get_mastodon_text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def normalise_text(text: str) -> str:
8484
post_data["created_at"], "%Y-%m-%dT%H:%M:%S.%fz"
8585
)
8686

87-
print(f'[{author}]({post_url}) ({created_at.strftime("%-d %B %Y")}):')
87+
print(f"[{author}]({post_url}) ({created_at.strftime('%-d %B %Y')}):")
8888
print("")
8989
for line in normalise_text(post_data["content"]).splitlines():
9090
print(f"> {line}".strip())

0 commit comments

Comments
 (0)