From d4194c134b9a076ee8d7ac72979812236014fad3 Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Sun, 13 Oct 2024 15:26:08 +0200 Subject: [PATCH] misc: codespell fixes Signed-off-by: Pavel Hrdina --- tests/data/codespell_dict.txt | 3 +++ tests/test_xmlparse.py | 2 +- virtManager/createvm.py | 4 ++-- virtManager/delete.py | 4 ++-- virtManager/details/details.py | 2 +- virtManager/lib/uiutil.py | 2 +- virtinst/cli.py | 2 +- 7 files changed, 11 insertions(+), 8 deletions(-) diff --git a/tests/data/codespell_dict.txt b/tests/data/codespell_dict.txt index 33e33615e..1e64911f2 100644 --- a/tests/data/codespell_dict.txt +++ b/tests/data/codespell_dict.txt @@ -3,3 +3,6 @@ doubleclick msdos hda cloneable +passt +Cruzer +bootup diff --git a/tests/test_xmlparse.py b/tests/test_xmlparse.py index 505e1049b..1e699ea90 100644 --- a/tests/test_xmlparse.py +++ b/tests/test_xmlparse.py @@ -77,7 +77,7 @@ def testAlterGuest(): check = _make_checker(guest) - # Check specific vcpu_current behaviro + # Check specific vcpu_current behavior check("vcpus", 5, 10) assert guest.vcpu_current is None check("vcpu_current", None, 15) diff --git a/virtManager/createvm.py b/virtManager/createvm.py index 2100eadef..d5f49fb70 100644 --- a/virtManager/createvm.py +++ b/virtManager/createvm.py @@ -2090,12 +2090,12 @@ class vmmCreateVM(vmmGObjectUI): else: # pragma: no cover import virtBootstrap # pylint: disable=import-error - meter.start(_("Bootstraping container"), None) + meter.start(_("Bootstrapping container"), None) def progress_update_cb(prog): meter.start(_(prog['status']), None) asyncjob.details_enable() - # Use logging filter to show messages of the progreess on the GUI + # Use logging filter to show messages of the progress on the GUI class SetStateFilter(logging.Filter): def filter(self, record): asyncjob.details_update("%s\n" % record.getMessage()) diff --git a/virtManager/delete.py b/virtManager/delete.py index 2195a5d9e..d162ed7cd 100644 --- a/virtManager/delete.py +++ b/virtManager/delete.py @@ -496,7 +496,7 @@ def _populate_storage_list(storage_list, vm, conn, diskdatas): def _prepare_storage_list(storage_list): - # Checkbox, deleteable?, storage path, target (hda), icon name, + # Checkbox, deletable?, storage path, target (hda), icon name, # icon size, tooltip model = Gtk.ListStore(bool, bool, str, str, bool, str, int, str) storage_list.set_model(model) @@ -557,7 +557,7 @@ def _storage_item_toggled(src, index, storage_list): def _can_delete(conn, vol, path): - """Is the passed path even deleteable""" + """Is the passed path even deletable""" msg = None if vol: diff --git a/virtManager/details/details.py b/virtManager/details/details.py index 213cc6508..bd55f0baf 100644 --- a/virtManager/details/details.py +++ b/virtManager/details/details.py @@ -2132,7 +2132,7 @@ class vmmDetails(vmmGObjectUI): show_ui("char-target-type", target_type) show_ui("char-target-name", chardev.target_name) # Only show for the qemu guest agent, which we get async - # notifiations about connection state. For spice this UI field + # notifications about connection state. For spice this UI field # can get out of date show_ui("char-target-state", chardev.target_state, doshow=is_qemuga) clipboard = _("On") if chardev.source.clipboard_copypaste else _("Off") diff --git a/virtManager/lib/uiutil.py b/virtManager/lib/uiutil.py index f601bbe6e..7b6f7b406 100644 --- a/virtManager/lib/uiutil.py +++ b/virtManager/lib/uiutil.py @@ -140,7 +140,7 @@ def set_grid_row_visible(child, visible): For the passed widget, find its parent GtkGrid, and hide/show all elements that are in the same row as it. Simplifies having to name every element in a row when we want to dynamically hide things - based on UI interraction + based on UI interaction """ parent = child.get_parent() if not isinstance(parent, Gtk.Grid): diff --git a/virtinst/cli.py b/virtinst/cli.py index 38580fdb2..8fdad4327 100644 --- a/virtinst/cli.py +++ b/virtinst/cli.py @@ -3244,7 +3244,7 @@ class ParserSysinfo(VirtCLIParser): # Previously libvirt treated sysinfo as a singleton object, but # that changed with fwcfg support. Our cli would merge all options # together but now needs to support multiple. Maintain sorta - # backcompat behavior by mergin options if 'type' matches + # backcompat behavior by merging options if 'type' matches if not inst: typ = self.optdict["type"] for sysinfo in self.guest.sysinfo: