Skip to content

Commit b24c13a

Browse files
Use codespell in Robottelo (#18915)
1 parent 30f16b2 commit b24c13a

File tree

109 files changed

+201
-193
lines changed

Some content is hidden

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

109 files changed

+201
-193
lines changed

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,11 @@ repos:
3131
rev: v8.27.2
3232
hooks:
3333
- id: gitleaks
34+
- repo: https://github.com/codespell-project/codespell
35+
rev: v2.4.1
36+
hooks:
37+
- id: codespell
38+
args:
39+
- --skip=*hammer_commands.json,*.xml
40+
- -L=Thirdparty,ACSes,checkin,cockateel
41+
- -w

conf/ldap.yaml.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ LDAP:
1313
2019: 192.168.0.3 # <ip_address of 2019 ad server>
1414
NAMESERVER6:
1515
2019: 2001::beef:face # <ip6_address of 2019 ad server>
16-
WORKGROUP: # udpate with ldap server's domain name
16+
WORKGROUP: # update with ldap server's domain name
1717
2016: FOO # <workgroup 2016 server>
1818
2019: FOO19 # <workgroup 2019 server>

conf/server.yaml.template

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ SERVER:
6161
SSH_CLIENT:
6262
# Specify port number for ssh client, Default: 22
6363
PORT:
64-
# Time to wait for the ssh command to finish, in miliseconds
64+
# Time to wait for the ssh command to finish, in milliseconds
6565
COMMAND_TIMEOUT: 300000
6666
# Time to wait for establishing the ssh connection, in seconds
6767
CONNECTION_TIMEOUT: 60

docs/code_standards.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Strings
4545
* Use string methods instead of the string module.
4646
* Use f-strings for string formatting whenever possible.
4747
* Use the string's format method when an f-string would become too complex.
48-
* When using format, leave out indices, unless absolutely necessary (e.g. variable re-use).
48+
* When using format, leave out indices, unless absolutely necessary (e.g. variable reuse).
4949

5050
* Keyword vs positional index preference is up to the reviewers.
5151

docs/committing.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ missing docstrings.
5555
:code:`test-robottelo` will run all the tests created to ensure Robottelo is
5656
working as expected. If you added a test, it will be run now.
5757

58-
Peforming the commit
59-
--------------------
58+
Performing the commit
59+
---------------------
6060

6161
Proper commit messages
6262

docs/features/commands.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ In the subgroup `ui` you can find the `browse` command which opens the same
8383
interactive shell but it also opens a new browser instance and gives you
8484
the context to play with this.
8585

86-
The interaction with the `ui` browser is done trough the `session` object, and
86+
The interaction with the `ui` browser is done through the `session` object, and
8787
the opened browser uses the configuration from your `robottelo.properties` file.
8888

8989
Open a new REPL connected to a browser session:
@@ -112,7 +112,7 @@ Open a new REPL connected to a browser session:
112112
2016-09-16 14:05:46 - robottelo.ui.browser - DEBUG - logout
113113
2016-09-16 14:05:46 - robottelo.ui.browser - DEBUG - Close Browser
114114
115-
While you interact wth the UI using the helpers as the ones in the exemple above
115+
While you interact with the UI using the helpers as the ones in the example above
116116
you see your browser window changing interactively, if you prefer to use a docker browser
117117
it is possible to connect via VNC or get screenshots calling :code:`session.browser.save_screenshot()`
118118

pytest_fixtures/component/repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ class constructor arguments. It can create multiple repos with distro.
135135
"""
136136
_repos = []
137137
repo_distro = None
138-
# Iterating over repository thats requested more than once
138+
# Iterating over repository that's requested more than once
139139
for repo_name, repo_options in repos.items():
140140
if isinstance(repo_options, list):
141141
[_repos.append({repo_name: options}) for options in repo_options]

pytest_fixtures/core/sat_cap_factory.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ def installer_satellite(request):
389389
).get_command(),
390390
timeout='30m',
391391
)
392-
# exit code 0 means no changes, 2 means changes were applied succesfully
392+
# exit code 0 means no changes, 2 means changes were applied successfully
393393
assert installer_result.status in (0, 2), installer_result.stdout
394394

395395
sat.enable_satellite_ipv6_http_proxy()

pytest_plugins/fixture_markers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def pytest_collection_modifyitems(session, items, config):
155155
from pytest_fixtures.core import contenthosts
156156

157157
def chost_rhelver(params):
158-
"""Helper to retrive the rhel_version of a client from test params"""
158+
"""Helper to retrieve the rhel_version of a client from test params"""
159159
for param in params:
160160
if 'contenthost' in param:
161161
return params[param].get('rhel_version')

pytest_plugins/jira_comments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def pytest_addoption(parser):
1515
help_comment = (
1616
'Report/Comment test results on Jira issues.\n'
1717
'Results for tests marked with "Verifies" or "BlockedBy" doc fields will be commented on the corresponding Jira issues. '
18-
'This behaviour can be overriden by providing a comma separated list of jira issue ids.\n'
18+
'This behaviour can be overridden by providing a comma separated list of jira issue ids.\n'
1919
'Note: To prevent accidental use, users must set ENABLE_COMMENT to true in the jira.yaml configuration file.'
2020
)
2121
parser.addoption(

0 commit comments

Comments
 (0)