Skip to content

Commit 80eebcf

Browse files
authored
Enable the explicit-f-string-type-conversion rule and fix warnings (archlinux#2954)
1 parent 7b291a6 commit 80eebcf

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

archinstall/lib/disk/subvolume_menu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def _add_subvolume(self, preset: SubvolumeModification | None = None) -> Subvolu
5454
case ResultType.Reset:
5555
raise ValueError('Unhandled result type')
5656

57-
header = f"{str(_('Subvolume name'))}: {name}\n"
57+
header = f"{_('Subvolume name')}: {name}\n"
5858

5959
path = prompt_dir(
6060
str(_("Subvolume mountpoint")),

archinstall/lib/global_menu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ def _prev_network_config(self, item: MenuItem) -> str | None:
310310
if network_config.type == NicType.MANUAL:
311311
output = FormattedOutput.as_table(network_config.nics)
312312
else:
313-
output = f'{str(_('Network configuration'))}:\n{network_config.type.display_msg()}'
313+
output = f'{_('Network configuration')}:\n{network_config.type.display_msg()}'
314314

315315
return output
316316
return None
@@ -363,7 +363,7 @@ def _prev_swap(self, item: MenuItem) -> str | None:
363363

364364
def _prev_uki(self, item: MenuItem) -> str | None:
365365
if item.value is not None:
366-
output = f'{str(_('Unified kernel images'))}: '
366+
output = f'{_('Unified kernel images')}: '
367367
output += str(_('Enabled')) if item.value else str(_('Disabled'))
368368
return output
369369
return None

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ ignore = [
222222
"E722", # bare-except
223223
"PLW2901", # redefined-loop-name
224224
"RUF005", # collection-literal-concatenation
225-
"RUF010", # explicit-f-string-type-conversion
226225
"RUF012", # mutable-class-default
227226
"RUF015", # unnecessary-iterable-allocation-for-first-element
228227
"RUF039", # unraw-re-pattern

0 commit comments

Comments
 (0)