Skip to content

Commit

Permalink
Typo fixes
Browse files Browse the repository at this point in the history
- "calss" -> "class"
- "formated" -> "formatted
- "funtion" -> "function"
- "requirments" -> "requirements"
- "rquirement" -> "requirement"

Found using codespell.

Adapt one rst header accordingly.
  • Loading branch information
ptoscano authored and ogajduse committed Aug 14, 2024
1 parent b1313be commit 655b419
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions betelgeuse/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@


def validate_key_value_option(ctx, param, value):
"""Validate an option that expects key=value formated values."""
"""Validate an option that expects key=value formatted values."""
if value is None:
return
try:
Expand Down Expand Up @@ -234,12 +234,12 @@ def cli(ctx, config_module):
@cli.command('requirement')
@click.option(
'--approver',
help='Whom the requirments will be approved by.',
help='Whom the requirements will be approved by.',
multiple=True,
)
@click.option(
'--assignee',
help='Whom the requirments will be assigned to.',
help='Whom the requirements will be assigned to.',
)
@click.option('--team', help='Team owning the requirement.',)
@click.option(
Expand Down
4 changes: 2 additions & 2 deletions betelgeuse/collector.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def __init__(
#: set, otherwise it will be ``None``
self.parent_class = parent_class.name
#: If the testcase is a method then the parent ``ast.ClasDef``
#: representation of the parent calss will be set, otherwise it
#: representation of the parent class will be set, otherwise it
#: will be ``None``
self.parent_class_def = parent_class
#: If test case is a method then the parent class docstring will be
Expand Down Expand Up @@ -72,7 +72,7 @@ def __init__(
self.pkginit_def = None
self.pkginit_docstring = None
#: The dictionary that will store the field values defined for the
#: testcase. The field value resolution order is the test funtion or
#: testcase. The field value resolution order is the test function or
#: method docstring, the class docstring if it is a method, the module
#: docstring and finally the ``__init__.py`` docstring if present. The
#: first value found the search will stop.
Expand Down
4 changes: 2 additions & 2 deletions docs/config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ does not validate the values on Polarion.
.. literalinclude:: ../betelgeuse/default_config.py
:linenos:

Rquirement objects
==================
Requirement objects
===================

.. autoclass:: betelgeuse.collector.Requirement
:members:
Expand Down

0 comments on commit 655b419

Please sign in to comment.