Apply ruff formatting
- ID
5db2d1e- date
2025-01-10 21:46:43+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
40458ee- message
Apply ruff formatting- changed files
4 files, 4 additions, 4 deletions
Changed files
aws/s3rm.py (2585) → aws/s3rm.py (2585)
diff --git a/aws/s3rm.py b/aws/s3rm.py
index e8f20a7..111851f 100755
--- a/aws/s3rm.py
+++ b/aws/s3rm.py
@@ -44,7 +44,7 @@ def delete_objects(sess, iterator):
def print_result():
print(
- f'{humanize.intcomma(total_deleted_count)} object{"s" if total_deleted_count != 1 else ""} deleted, total {humanize.naturalsize(total_deleted_size)}'
+ f"{humanize.intcomma(total_deleted_count)} object{'s' if total_deleted_count != 1 else ''} deleted, total {humanize.naturalsize(total_deleted_size)}"
)
def delete_batch(batch):
aws/s3tree.py (6331) → aws/s3tree.py (6331)
diff --git a/aws/s3tree.py b/aws/s3tree.py
index 5c6602e..94fab97 100755
--- a/aws/s3tree.py
+++ b/aws/s3tree.py
@@ -207,7 +207,7 @@ if __name__ == "__main__":
print(
termcolor.colored(
- f'{humanize.intcomma(len(s3_objects))} object{"s" if len(s3_objects) > 1 else ""}, '
+ f"{humanize.intcomma(len(s3_objects))} object{'s' if len(s3_objects) > 1 else ''}, "
f"totalling {humanize.naturalsize(total_size)}, "
f"last modified {last_modified_message}",
"green",
images/tint_image.py (1121) → images/tint_image.py (1121)
diff --git a/images/tint_image.py b/images/tint_image.py
index 264f42a..275b567 100755
--- a/images/tint_image.py
+++ b/images/tint_image.py
@@ -36,7 +36,7 @@ if __name__ == "__main__":
tinted_im.putdata([(red, green, blue, 255 - p[0]) for p in pixels])
name, _ = path.rsplit(".", 1)
- out_path = f'{name}.{hex_colour.strip("#")}.png'
+ out_path = f"{name}.{hex_colour.strip('#')}.png"
tinted_im.save(out_path)
print(out_path)
textexpander/get_mastodon_text.py (2677) → textexpander/get_mastodon_text.py (2677)
diff --git a/textexpander/get_mastodon_text.py b/textexpander/get_mastodon_text.py
index ad162ad..b2c2acc 100755
--- a/textexpander/get_mastodon_text.py
+++ b/textexpander/get_mastodon_text.py
@@ -84,7 +84,7 @@ if __name__ == "__main__":
post_data["created_at"], "%Y-%m-%dT%H:%M:%S.%fz"
)
- print(f'[{author}]({post_url}) ({created_at.strftime("%-d %B %Y")}):')
+ print(f"[{author}]({post_url}) ({created_at.strftime('%-d %B %Y')}):")
print("")
for line in normalise_text(post_data["content"]).splitlines():
print(f"> {line}".strip())