Skip to content

Commit b43f90a

Browse files
authored
Fix various typos in the repo (#10263)
1 parent 5503a6a commit b43f90a

File tree

10 files changed

+17
-16
lines changed

10 files changed

+17
-16
lines changed

airflow/api_connexion/schemas/health_schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121
class BaseInfoSchema(Schema):
22-
"""Base status field for metadabase and scheduler"""
22+
"""Base status field for metadatabase and scheduler"""
2323
status = fields.String(dump_only=True)
2424

2525

airflow/models/baseoperator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -891,7 +891,7 @@ def render_template( # pylint: disable=too-many-return-statements
891891
if not jinja_env:
892892
jinja_env = self.get_template_env()
893893

894-
# Imported here to avoid ciruclar dependency
894+
# Imported here to avoid circular dependency
895895
from airflow.models.xcom_arg import XComArg
896896

897897
if isinstance(content, str):

airflow/models/dag.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,11 +1005,11 @@ def clear(
10051005
:type dry_run: bool
10061006
:param session: The sqlalchemy session to use
10071007
:type session: sqlalchemy.orm.session.Session
1008-
:param get_tis: Return the sqlachemy query for finding the TaskInstance without clearing the tasks
1008+
:param get_tis: Return the sqlalchemy query for finding the TaskInstance without clearing the tasks
10091009
:type get_tis: bool
10101010
:param recursion_depth: The recursion depth of nested calls to DAG.clear().
10111011
:type recursion_depth: int
1012-
:param max_recursion_depth: The maximum recusion depth allowed. This is determined by the
1012+
:param max_recursion_depth: The maximum recursion depth allowed. This is determined by the
10131013
first encountered ExternalTaskMarker. Default is None indicating no ExternalTaskMarker
10141014
has been encountered.
10151015
:type max_recursion_depth: int

airflow/models/dagcode.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ def bulk_sync_to_db(cls, filelocs: Iterable[str], session=None):
9797
existing_orm_dag_codes_by_fileloc_hashes = {
9898
orm.fileloc_hash: orm for orm in existing_orm_dag_codes
9999
}
100-
exisitng_orm_filelocs = {
100+
existing_orm_filelocs = {
101101
orm.fileloc for orm in existing_orm_dag_codes_by_fileloc_hashes.values()
102102
}
103-
if not exisitng_orm_filelocs.issubset(filelocs):
104-
conflicting_filelocs = exisitng_orm_filelocs.difference(filelocs)
103+
if not existing_orm_filelocs.issubset(filelocs):
104+
conflicting_filelocs = existing_orm_filelocs.difference(filelocs)
105105
hashes_to_filelocs = {
106106
DagCode.dag_fileloc_hash(fileloc): fileloc for fileloc in filelocs
107107
}

airflow/providers/apache/hive/hooks/hive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def __init__(
107107

108108
def _get_proxy_user(self) -> str:
109109
"""
110-
This function set the proper proxy_user value in case the user overwtire the default.
110+
This function set the proper proxy_user value in case the user overwrite the default.
111111
"""
112112
conn = self.conn
113113

airflow/providers/apache/kylin/hooks/kylin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def get_conn(self):
5555

5656
def cube_run(self, datasource_name, op, **op_args):
5757
"""
58-
run CubeSource command whitch in CubeSource.support_invoke_command
58+
run CubeSource command which in CubeSource.support_invoke_command
5959
:param datasource_name:
6060
:param op: command
6161
:param op_args: command args

airflow/providers/google/cloud/hooks/dlp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,13 @@ def create_deidentify_template(
143143
de-identifying content, images, and storage.
144144
145145
:param organization_id: (Optional) The organization ID. Required to set this
146-
field if parent resource is an organzation.
146+
field if parent resource is an organization.
147147
:type organization_id: str
148148
:param project_id: (Optional) Google Cloud Platform project ID where the
149149
DLP Instance exists. Only set this field if the parent resource is
150150
a project instead of an organzation.
151151
:type project_id: str
152-
:param deidentify_template: (Optional) The deidentify template to create.
152+
:param deidentify_template: (Optional) The de-identify template to create.
153153
:type deidentify_template: dict or google.cloud.dlp_v2.types.DeidentifyTemplate
154154
:param template_id: (Optional) The template ID.
155155
:type template_id: str

backport_packages/refactor_backport_packages.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def copy_helper_py_file(target_file_path: str) -> None:
7979
8080
The helper has two methods (chain, cross_downstream) that are moved from the original helper to
8181
'airflow.models.baseoperator'. so in 1.10 they should reimport the original 'airflow.utils.helper'
82-
methods. Those deprecated methods use importe with import_string("<IMPORT>") so it is easier to
82+
methods. Those deprecated methods use import with import_string("<IMPORT>") so it is easier to
8383
replace them as strings rather than with Bowler
8484
8585
:param target_file_path: target path name for the helpers.py

docs/concepts.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ The decorated function can be called once to set the arguments and key arguments
243243
244244
Task decorator captures returned values and sends them to the :ref:`XCom backend <concepts:xcom>`. By default, returned
245245
value is saved as a single XCom value. You can set ``multiple_outputs`` key argument to ``True`` to unroll dictionaries,
246-
lists or tuples into seprate XCom values. This can be used with regular operators to create
246+
lists or tuples into separate XCom values. This can be used with regular operators to create
247247
:ref:`functional DAGs <concepts:functional_dags>`.
248248

249249
Calling a decorated function returns an ``XComArg`` instance. You can use it to set templated fields on downstream
@@ -743,7 +743,7 @@ Custom XCom backend
743743

744744
It is possible to change ``XCom`` behaviour os serialization and deserialization of tasks' result.
745745
To do this one have to change ``xcom_backend`` parameter in Airflow config. Provided value should point
746-
to a class that is subclass of :class:`~airflow.models.xcom.BaseXCom`. To alter the serialaization /
746+
to a class that is subclass of :class:`~airflow.models.xcom.BaseXCom`. To alter the serialization /
747747
deserialization mechanism the custom class should override ``serialize_value`` and ``deserialize_value``
748748
methods.
749749

docs/howto/write-logs.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,8 @@ To output task logs to stdout in JSON format, the following config could be used
264264
Writing Logs to Elasticsearch over TLS
265265
----------------------------------------
266266

267-
To add custom configurations to ElasticSearch (e.g. turning on ``ssl_verify``, adding a custom self-signed cert, etc.) use the ``elasticsearch_configs`` setting in your ``airfow.cfg``
267+
To add custom configurations to ElasticSearch (e.g. turning on ``ssl_verify``, adding a custom self-signed
268+
cert, etc.) use the ``elasticsearch_configs`` setting in your ``airflow.cfg``
268269

269270
.. code-block:: ini
270271
@@ -312,7 +313,7 @@ logs under the name ``airflow-tasks``.
312313

313314
You can set ``stackdriver_key_path`` option in the ``[logging]`` section to specify the path to `the service
314315
account key file <https://cloud.google.com/iam/docs/service-accounts>`__.
315-
If ommited, authorization based on `the Application Default Credentials
316+
If omitted, authorization based on `the Application Default Credentials
316317
<https://cloud.google.com/docs/authentication/production#finding_credentials_automatically>`__ will
317318
be used.
318319

0 commit comments

Comments
 (0)