Skip to main content

Merge pull request #186 from alexwlchan/dependabot/pip/ruff-0.9.4

ID
59b9e5f
date
2025-02-01 19:05:45+00:00
author
Alex Chan <alex@alexwlchan.net>
parents
0101703, 792f304
message
Merge pull request #186 from alexwlchan/dependabot/pip/ruff-0.9.4

Bump ruff from 0.9.3 to 0.9.4
changed files
2 files, 9 additions, 10 deletions

Changed files

images/squarify.py (1048) → images/squarify.py (1012)

diff --git a/images/squarify.py b/images/squarify.py
index 85c40bb..d594235 100755
--- a/images/squarify.py
+++ b/images/squarify.py
@@ -9,17 +9,17 @@ import sys
 from PIL import Image
 
 
-if __name__ == '__main__':
+if __name__ == "__main__":
     try:
         path = Path(sys.argv[1])
     except IndexError:
         sys.exit(f"Usage: {__file__} IMAGE_PATH")
-    
+
     im = Image.open(path)
-    
+
     out_path = path.with_suffix(".square" + path.suffix)
     assert out_path != path
-    
+
     if im.width == im.height:
         print(path)
     elif im.width > im.height:
@@ -27,7 +27,7 @@ if __name__ == '__main__':
         upper = 0
         right = im.width - (im.width - im.height) / 2
         lower = im.height
-        
+
         crop_im = im.crop((left, upper, right, lower))
         crop_im.save(out_path)
         print(out_path)
@@ -36,10 +36,9 @@ if __name__ == '__main__':
         upper = (im.height - im.width) / 2
         right = im.width
         lower = im.height - (im.height - im.width) / 2
-        
+
         crop_im = im.crop((left, upper, right, lower))
         crop_im.save(out_path)
         print(out_path)
-    
-    
-    # main()
\ No newline at end of file
+
+    # main()

requirements.txt (3472) → requirements.txt (3472)

diff --git a/requirements.txt b/requirements.txt
index 1d371b3..824d9c6 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.9.3
+ruff==0.9.4
     # via -r requirements.in
 s3transfer==0.10.2
     # via boto3