From 45502d7beb1431f6005317db34be48fb9b901c89 Mon Sep 17 00:00:00 2001 From: Jay Faulkner Date: Thu, 14 Mar 2024 12:57:26 -0700 Subject: [PATCH] Fix new codespell issues; tweak config Configuration was fine for the gate, but I've updated it to ignore directories and files that can be found in a well-used development checkout. Fixed any new spelling issues. Change-Id: Icef5addba938b27911c26e841a37a2e9ba3fbe43 --- ironic/conf/default.py | 2 +- ironic/drivers/modules/pxe_base.py | 2 +- ironic/tests/unit/drivers/modules/network/test_neutron.py | 2 +- setup.cfg | 5 +---- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/ironic/conf/default.py b/ironic/conf/default.py index 261922980a..74f8f4baa9 100644 --- a/ironic/conf/default.py +++ b/ironic/conf/default.py @@ -474,7 +474,7 @@ rbac_opts = [ 'to override the default "service_role" rule. ' 'It should be noted that the value of "service" ' 'is a default convention for OpenStack deployments, ' - 'but the requsite access and details around ' + 'but the requisite access and details around ' 'end configuration are largely up to an operator ' 'if they are doing an OpenStack deployment manually.')), ] diff --git a/ironic/drivers/modules/pxe_base.py b/ironic/drivers/modules/pxe_base.py index 94748c3199..32528339c4 100644 --- a/ironic/drivers/modules/pxe_base.py +++ b/ironic/drivers/modules/pxe_base.py @@ -237,7 +237,7 @@ class PXEBaseMixin(object): Basic challenge: IPMI doesn't have a field reserved for "httpboot" as httpboot pre-dates IPMI. It is also entirely possible that all logic to support httpboot is coming from OPROM code on network cards, so to - sort of handle this, and the nature of PXE being percieved as + sort of handle this, and the nature of PXE being perceived as "network boot", if we are http boot enabled, we attempt to explicitly request as such, but if the driver errors, then we fall back to PXE. diff --git a/ironic/tests/unit/drivers/modules/network/test_neutron.py b/ironic/tests/unit/drivers/modules/network/test_neutron.py index 43f9693499..706b923e5e 100644 --- a/ironic/tests/unit/drivers/modules/network/test_neutron.py +++ b/ironic/tests/unit/drivers/modules/network/test_neutron.py @@ -92,7 +92,7 @@ class NeutronInterfaceTestCase(db_base.DbTestCase): # NOTE(TheJulia): This tests validates the calls are made. # When not mocked out completely, since Neutron is consulted # on validity of the name or UUID as well, the validate_network - # method gets called which rasies a validate parsable error. + # method gets called which raises a validate parsable error. self.assertEqual([mock.call(CONF.neutron.cleaning_network, 'cleaning_network', context=task.context), diff --git a/setup.cfg b/setup.cfg index bc3505b1b3..2c18bae38f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -238,7 +238,4 @@ quiet-level = 4 # CNA: Computer Network Administrator # MyRAID: class name ignore-words-list = selectin,exept,taks,ser,wit,cna,myraid,dum -# note(adamcarthur): codespell doesn't support inline-ignores -# so we can use this regex instead to effectively add it. -ignore-regex = .*cs_ign$ -skip = AUTHORS,ChangeLog +skip = AUTHORS,ChangeLog,*.pyc,*.inv,*.svg,*.png,*.sample,./doc/build/*,./api-ref/build/*,./releasenotes/build/*,./api-ref/build/*,./build/*