Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion archinstall/default_profiles/desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def default_greeter_type(self) -> GreeterType | None:
combined_greeters[profile.default_greeter_type] += 1

if len(combined_greeters) >= 1:
return list(combined_greeters)[0]
return next(iter(combined_greeters))

return None

Expand Down
4 changes: 2 additions & 2 deletions archinstall/lib/disk/partitioning_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ async def handle_action(
data: list[DiskSegment],
) -> list[DiskSegment]:
if not entry:
action_key = [k for k, v in self._actions.items() if v == action][0]
action_key = next(k for k, v in self._actions.items() if v == action)
match action_key:
case 'suggest_partition_layout':
part_mods = self.get_part_mods(data)
Expand All @@ -288,7 +288,7 @@ async def handle_action(
data = [s for s in data if isinstance(s.segment, PartitionModification) and s.segment.is_exists_or_modify()]
elif isinstance(entry.segment, PartitionModification):
partition = entry.segment
action_key = [k for k, v in self._actions.items() if v == action][0]
action_key = next(k for k, v in self._actions.items() if v == action)
match action_key:
case 'assign_mountpoint':
new_mountpoint = await self._prompt_mountpoint()
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,6 @@ ignore = [
"PLW1641", # eq-without-hash
"PLW2901", # redefined-loop-name
"RUF005", # collection-literal-concatenation
"RUF015", # unnecessary-iterable-allocation-for-first-element
"RUF039", # unraw-re-pattern
"W191", # tab-indentation
]
Expand Down