diff --git a/archinstall/lib/disk/subvolume_menu.py b/archinstall/lib/disk/subvolume_menu.py index fdf14943bd..7873e66b99 100644 --- a/archinstall/lib/disk/subvolume_menu.py +++ b/archinstall/lib/disk/subvolume_menu.py @@ -54,7 +54,7 @@ def _add_subvolume(self, preset: SubvolumeModification | None = None) -> Subvolu case ResultType.Reset: raise ValueError('Unhandled result type') - header = f"{str(_('Subvolume name'))}: {name}\n" + header = f"{_('Subvolume name')}: {name}\n" path = prompt_dir( str(_("Subvolume mountpoint")), diff --git a/archinstall/lib/global_menu.py b/archinstall/lib/global_menu.py index 54530f00ea..4fe7758c7c 100644 --- a/archinstall/lib/global_menu.py +++ b/archinstall/lib/global_menu.py @@ -310,7 +310,7 @@ def _prev_network_config(self, item: MenuItem) -> str | None: if network_config.type == NicType.MANUAL: output = FormattedOutput.as_table(network_config.nics) else: - output = f'{str(_('Network configuration'))}:\n{network_config.type.display_msg()}' + output = f'{_('Network configuration')}:\n{network_config.type.display_msg()}' return output return None @@ -363,7 +363,7 @@ def _prev_swap(self, item: MenuItem) -> str | None: def _prev_uki(self, item: MenuItem) -> str | None: if item.value is not None: - output = f'{str(_('Unified kernel images'))}: ' + output = f'{_('Unified kernel images')}: ' output += str(_('Enabled')) if item.value else str(_('Disabled')) return output return None diff --git a/pyproject.toml b/pyproject.toml index 040a8840ce..9a89afd6cd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -222,7 +222,6 @@ ignore = [ "E722", # bare-except "PLW2901", # redefined-loop-name "RUF005", # collection-literal-concatenation - "RUF010", # explicit-f-string-type-conversion "RUF012", # mutable-class-default "RUF015", # unnecessary-iterable-allocation-for-first-element "RUF039", # unraw-re-pattern