From 1288ec172a5d0c59bf25b62c890c1ba1215b368f Mon Sep 17 00:00:00 2001 From: codefiles <11915375+codefiles@users.noreply.github.com> Date: Mon, 31 Aug 2026 08:18:36 -0400 Subject: [PATCH] Enable Ruff zip-without-explicit-strict rule --- archinstall/lib/disk/device_handler.py | 2 +- archinstall/lib/menu/menu_helper.py | 2 +- pyproject.toml | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/archinstall/lib/disk/device_handler.py b/archinstall/lib/disk/device_handler.py index 1e5d52224a..afc9db6371 100644 --- a/archinstall/lib/disk/device_handler.py +++ b/archinstall/lib/disk/device_handler.py @@ -217,7 +217,7 @@ def get_btrfs_info( # "fsroots": ["/@log", "/@home", "/@"...] # we'll thereby map the fsroot, which are the mounted filesystem roots # to the corresponding mountpoints - btrfs_subvol_info = dict(zip(lsblk_info.fsroots, lsblk_info.mountpoints)) + btrfs_subvol_info = dict(zip(lsblk_info.fsroots, lsblk_info.mountpoints, strict=True)) # ID 256 gen 16 top level 5 path @ for line in result.splitlines(): diff --git a/archinstall/lib/menu/menu_helper.py b/archinstall/lib/menu/menu_helper.py index e5e00fc94b..52dc1ddcd9 100644 --- a/archinstall/lib/menu/menu_helper.py +++ b/archinstall/lib/menu/menu_helper.py @@ -41,7 +41,7 @@ def _table_to_data_mapping(self, data: list[ValueT]) -> dict[str, ValueT | str | # these are the header rows of the table display_data = {f'{rows[0]}': None, f'{rows[1]}': None} - for row, entry in zip(rows[2:], data): + for row, entry in zip(rows[2:], data, strict=True): display_data[row] = entry if self._additional_options: diff --git a/pyproject.toml b/pyproject.toml index 9600beb81e..125a1caeac 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -218,7 +218,6 @@ select = [ ignore = [ "B008", # function-call-in-default-argument "B904", # raise-without-from-inside-except - "B905", # zip-without-explicit-strict "B909", # loop-iterator-mutation "COM812", # missing-trailing-comma "PLC0415", # import-outside-top-level