[codespell] fix final typos and enable ci

This chnage adds the pre-commit config and
tox targets to run codespell both indepenetly
and via the pep8 target.

This change correct all the final typos in the
codebase as detected by codespell.

Change-Id: Ic4fb5b3a5559bc3c43aca0a39edc0885da58eaa2
This commit is contained in:
Sean Mooney
2023-10-03 11:56:09 +01:00
parent 45e2349408
commit f4852f4c81
51 changed files with 106 additions and 90 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ class ProjectMapper(APIMapper):
def _get_project_id_token(self):
# NOTE(sdague): project_id parameter is only valid if its hex
# or hex + dashes (note, integers are a subset of this). This
# is required to hand our overlaping routes issues.
# is required to hand our overlapping routes issues.
return '{project_id:[0-9a-f-]+}'
def resource(self, member_name, collection_name, **kwargs):
@@ -1244,6 +1244,6 @@ Name (FQDN).
---------------------------------------------------
Any evacuated instances will be now stopped at destination. This
requires minimun nova release 27.0.0, OpenStack release 2023.1
requires minimum nova release 27.0.0, OpenStack release 2023.1
Antelope. Operators can still use previous microversion for older
behavior.
@@ -685,7 +685,7 @@ query_params_v273['properties'].update({
query_params_v275 = copy.deepcopy(query_params_v273)
# 1. Update sort_keys to allow only valid sort keys:
# NOTE(gmann): Remove the ignored sort keys now because 'additionalProperties'
# is Flase for query schema. Starting from miceoversion 2.75, API will
# is False for query schema. Starting from miceoversion 2.75, API will
# raise 400 for any not-allowed sort keys instead of ignoring them.
VALID_SORT_KEYS_V275 = copy.deepcopy(VALID_SORT_KEYS_V273)
VALID_SORT_KEYS_V275['enum'] = list(
+1 -1
View File
@@ -165,7 +165,7 @@ class ServerGroupController(wsgi.Controller):
# In existing behavior, if non-admin users requesting
# all projects server groups they do not get error instead
# get their own server groups. Once we switch to policy
# new defaults completly then we can remove the above check.
# new defaults completely then we can remove the above check.
# Until then, let's keep the old behaviour.
context.can(sg_policies.POLICY_ROOT % 'index:all_projects',
target={'project_id': project_id})
+1 -1
View File
@@ -45,7 +45,7 @@ def verify_project_id(context, project_id):
msg = _("Nova was unable to find Keystone service endpoint.")
# TODO(astupnik). It may be reasonable to switch to HTTP 503
# (HTTP Service Unavailable) instead of HTTP Bad Request here.
# If proper Keystone servie is inaccessible, then technially
# If proper Keystone service is inaccessible, then technially
# this is a server side error and not an error in Nova.
raise webob.exc.HTTPBadRequest(explanation=msg)
except kse.ClientException:
+1 -1
View File
@@ -142,7 +142,7 @@ class Request(wsgi.Request):
# no match. This is also little tricky that 'default' value cannot be
# None. At least one of default_tag or default must be supplied as
# an argument to the method, to define the defaulting behavior.
# So passing a sentinal value to return None from this function.
# So passing a sentinel value to return None from this function.
best_match = self.accept_language.lookup(
i18n.get_available_languages(), default='fake_LANG')