From 652912633910050ccc5f9b2e7bf3986438df8b72 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Tue, 21 Jul 2026 08:15:40 -0500 Subject: [PATCH] luarocks-packages-updater: format updater Apply Ruff formatting to keep the updater source consistent. --- pkgs/by-name/lu/luarocks-packages-updater/updater.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/lu/luarocks-packages-updater/updater.py b/pkgs/by-name/lu/luarocks-packages-updater/updater.py index 03b59098fda0..e3e88e780701 100755 --- a/pkgs/by-name/lu/luarocks-packages-updater/updater.py +++ b/pkgs/by-name/lu/luarocks-packages-updater/updater.py @@ -72,7 +72,7 @@ LICENSE_NORMALIZATION = { "Apache 2.0": "lib.licenses.asl20", "Apache-2.0": "lib.licenses.asl20", "Apache License Version 2": "lib.licenses.asl20", - "BSD": "lib.licenses.free", # Too unspecific + "BSD": "lib.licenses.free", # Too unspecific "BSD-2-Clause": "lib.licenses.bsd2", "BSD-3-Clause": "lib.licenses.bsd3", "GPL-2+": "lib.licenses.gpl2Plus", @@ -85,7 +85,7 @@ LICENSE_NORMALIZATION = { "GPL-3.0-or-later": "lib.licenses.gpl3Plus", "GPLv3+ and other free licenses": "lib.licenses.AND [ lib.licenses.gpl3Plus lib.licenses.free ]", "ISC": "lib.licenses.isc", - "LGPL": "lib.licenses.free", # Too unspecific + "LGPL": "lib.licenses.free", # Too unspecific "LGPL-2.0": "lib.licenses.lgpl2Only", "LGPL-2.1": "lib.licenses.lgpl21Only", "LGPL-3.0": "lib.licenses.lgpl3Only", @@ -99,7 +99,7 @@ LICENSE_NORMALIZATION = { "2-clause BSD": "lib.licenses.bsd2", "Two-clause BSD": "lib.licenses.bsd2", "Public domain": "lib.licenses.publicDomain", - "UNKNOWN": "lib.licenses.unfree" + "UNKNOWN": "lib.licenses.unfree", } LICENSE_FULL_NAME_RE = re.compile(r'(?P\s*)license\.fullName = "(?P[^"]+)";') @@ -217,11 +217,7 @@ class LuaEditor(nixpkgs_plugin_update.Editor): specs = sorted(specs, key=lambda v: v.name.lower()) if args.update_only: - specs = [ - p - for p in specs - if p.normalized_name in args.update_only or p.name in args.update_only - ] + specs = [p for p in specs if p.normalized_name in args.update_only or p.name in args.update_only] if not specs: log.error("No matching Lua packages to update")