First pass of ruff check fixes (#26257)

This commit is contained in:
Joel Challis
2026-07-18 04:06:19 +01:00
committed by GitHub
parent bea6a83a12
commit cf01e22447
18 changed files with 56 additions and 75 deletions
+2 -2
View File
@@ -123,7 +123,7 @@ def _render_image_metadata(metadata):
continue
# Unpack rect's coords
l, t, r, b = v["delta_rect"]
l, t, r, b = v["delta_rect"] # noqa: E741
delta_px = (r - l) * (b - t)
px = size["width"] * size["height"]
@@ -143,7 +143,7 @@ def command_args_str(cli, command_name):
args = {}
max_length = 0
for arg_name, was_passed in cli.args_passed[command_name].items():
for arg_name in cli.args_passed[command_name].keys():
max_length = max(max_length, len(arg_name))
val = getattr(cli.args, arg_name.replace("-", "_"))