Skip to content

Commit 258e6f7

Browse files
Zuulopenstack-gerrit
authored andcommitted
Merge "[codespell] fix final typos and enable ci"
2 parents 33fa92b + f4852f4 commit 258e6f7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+106
-90
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,8 @@ repos:
3434
hooks:
3535
- id: autopep8
3636
files: '^.*\.py$'
37+
- repo: https://github.com/codespell-project/codespell
38+
rev: v2.2.4
39+
hooks:
40+
- id: codespell
41+
args: ['--ignore-words=doc/dictionary.txt']

doc/dictionary.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,5 @@ wile
99
usera
1010
dettach
1111
excpt
12-
imigration
12+
imigration
13+
childs

doc/source/admin/sev.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ steps:
9191
needs to track how many slots are available and used in order to
9292
avoid attempting to exceed that limit in the hardware.
9393

94-
Since version 8.0.0, libvirt exposes maximun mumber of SEV guests
94+
Since version 8.0.0, libvirt exposes maximum number of SEV guests
9595
which can run concurrently in its host, so the limit is automatically
9696
detected using this feature.
9797

nova/accelerator/cyborg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ def delete_arqs_by_uuid(self, arq_uuids):
380380
once, the 2nd and later calls will throw errors.
381381
382382
Cyborg deletes the ARQs without error, or returns 404 if there is ARQ
383-
which already deleted. In either way, existed ARQs in arq_uuids wil be
383+
which already deleted. In either way, existed ARQs in arq_uuids will be
384384
deleted. Such 404 error can be ignored safely.
385385
386386
If this fails, an error is logged but no exception is raised

nova/api/openstack/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class ProjectMapper(APIMapper):
165165
def _get_project_id_token(self):
166166
# NOTE(sdague): project_id parameter is only valid if its hex
167167
# or hex + dashes (note, integers are a subset of this). This
168-
# is required to hand our overlaping routes issues.
168+
# is required to hand our overlapping routes issues.
169169
return '{project_id:[0-9a-f-]+}'
170170

171171
def resource(self, member_name, collection_name, **kwargs):

nova/api/openstack/compute/rest_api_version_history.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1244,6 +1244,6 @@ Name (FQDN).
12441244
---------------------------------------------------
12451245

12461246
Any evacuated instances will be now stopped at destination. This
1247-
requires minimun nova release 27.0.0, OpenStack release 2023.1
1247+
requires minimum nova release 27.0.0, OpenStack release 2023.1
12481248
Antelope. Operators can still use previous microversion for older
12491249
behavior.

nova/api/openstack/compute/schemas/servers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@
685685
query_params_v275 = copy.deepcopy(query_params_v273)
686686
# 1. Update sort_keys to allow only valid sort keys:
687687
# NOTE(gmann): Remove the ignored sort keys now because 'additionalProperties'
688-
# is Flase for query schema. Starting from miceoversion 2.75, API will
688+
# is False for query schema. Starting from miceoversion 2.75, API will
689689
# raise 400 for any not-allowed sort keys instead of ignoring them.
690690
VALID_SORT_KEYS_V275 = copy.deepcopy(VALID_SORT_KEYS_V273)
691691
VALID_SORT_KEYS_V275['enum'] = list(

nova/api/openstack/compute/server_groups.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ def index(self, req):
165165
# In existing behavior, if non-admin users requesting
166166
# all projects server groups they do not get error instead
167167
# get their own server groups. Once we switch to policy
168-
# new defaults completly then we can remove the above check.
168+
# new defaults completely then we can remove the above check.
169169
# Until then, let's keep the old behaviour.
170170
context.can(sg_policies.POLICY_ROOT % 'index:all_projects',
171171
target={'project_id': project_id})

nova/api/openstack/identity.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def verify_project_id(context, project_id):
4545
msg = _("Nova was unable to find Keystone service endpoint.")
4646
# TODO(astupnik). It may be reasonable to switch to HTTP 503
4747
# (HTTP Service Unavailable) instead of HTTP Bad Request here.
48-
# If proper Keystone servie is inaccessible, then technially
48+
# If proper Keystone service is inaccessible, then technially
4949
# this is a server side error and not an error in Nova.
5050
raise webob.exc.HTTPBadRequest(explanation=msg)
5151
except kse.ClientException:

nova/api/openstack/wsgi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def best_match_language(self):
142142
# no match. This is also little tricky that 'default' value cannot be
143143
# None. At least one of default_tag or default must be supplied as
144144
# an argument to the method, to define the defaulting behavior.
145-
# So passing a sentinal value to return None from this function.
145+
# So passing a sentinel value to return None from this function.
146146
best_match = self.accept_language.lookup(
147147
i18n.get_available_languages(), default='fake_LANG')
148148

0 commit comments

Comments
 (0)