Skip to main content

Merge pull request #177 from alexwlchan/dependabot/pip/ruff-0.9.0

ID
d7b505b
date
2025-01-10 21:48:28+00:00
author
Alex Chan <alex@alexwlchan.net>
parents
bc218db, 5db2d1e
message
Merge pull request #177 from alexwlchan/dependabot/pip/ruff-0.9.0

Bump ruff from 0.8.5 to 0.9.0
changed files
5 files, 5 additions, 5 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)

requirements.txt (3473) → requirements.txt (3473)

diff --git a/requirements.txt b/requirements.txt
index cda8dd7..202f7d1 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -145,7 +145,7 @@ python-multipart==0.0.6
     # via asgi-csrf
 pyyaml==6.0.1
     # via datasette
-ruff==0.8.5
+ruff==0.9.0
     # via -r requirements.in
 s3transfer==0.10.2
     # via boto3

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())