]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
config: Fix formatting with newer ruff 4151/head
authorDaan De Meyer <daan@amutable.com>
Thu, 5 Feb 2026 08:53:11 +0000 (09:53 +0100)
committerDaan De Meyer <daan@amutable.com>
Thu, 5 Feb 2026 08:53:11 +0000 (09:53 +0100)
mkosi/config.py

index a502e1e23321f2f20f0e74d314156cd67cbdac5a..051f7108911f28c06ea01bd1ff4c7a6ec8c1e57e 100644 (file)
@@ -3720,9 +3720,11 @@ SETTINGS: list[ConfigSetting[Any]] = [
         section="Build",
         default_factory_depends=("distribution", "mirror", "tools_tree_distribution"),
         default_factory=(
-            lambda ns: ns["mirror"]
-            if ns["mirror"] and ns["distribution"] == ns["tools_tree_distribution"]
-            else None
+            lambda ns: (
+                ns["mirror"]
+                if ns["mirror"] and ns["distribution"] == ns["tools_tree_distribution"]
+                else None
+            )
         ),
         help="Set the mirror to use for the default tools tree",
         scope=SettingScope.tools,