From cbd1bb7e976f8dd1b8d1fc21e190c7311b3cb9cd Mon Sep 17 00:00:00 2001
From: KarshVashi <41749592+KarshVashi@users.noreply.github.com>
Date: Sat, 24 Dec 2022 01:16:55 +0000
Subject: [PATCH 1/4] Update codespell and fix typos

---
 .codespellignorelines                                     | 1 +
 .pre-commit-config.yaml                                   | 2 +-
 RELEASE_NOTES.rst                                         | 2 +-
 airflow/providers/sftp/hooks/sftp.py                      | 2 +-
 airflow/utils/code_utils.py                               | 2 +-
 .../doc/adr/0002-implement-standalone-python-command.md   | 2 +-
 dev/stats/get_important_pr_candidates.py                  | 2 +-
 docs/apache-airflow/extra-packages-ref.rst                | 2 +-
 docs/spelling_wordlist.txt                                | 3 ++-
 tests/providers/docker/operators/test_docker.py           | 8 ++++----
 tests/www/test_utils.py                                   | 2 +-
 11 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/.codespellignorelines b/.codespellignorelines
index d641f0aaaa6bb..2ab53778310fa 100644
--- a/.codespellignorelines
+++ b/.codespellignorelines
@@ -1,3 +1,4 @@
             f"DELETE {source_table} FROM { ', '.join(_from_name(tbl) for tbl in stmt.froms) }"
         for frm in source_query.selectable.froms:
     roles = relationship("Role", secondary=assoc_user_role, backref="user", lazy="selectin")
+    The platform supports **C**reate, **R**ead, **U**pdate, and **D**elete operations on most resources.
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index cc40fd856d89d..3bcd3085b8e54 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -292,7 +292,7 @@ repos:
          - --line-length
          - '99999'
   - repo: https://github.com/codespell-project/codespell
-    rev: v2.1.0
+    rev: v2.2.2
     hooks:
       - id: codespell
         name: Run codespell to check for common misspellings in files
diff --git a/RELEASE_NOTES.rst b/RELEASE_NOTES.rst
index e963142a69d64..9c2cf3c25adc1 100644
--- a/RELEASE_NOTES.rst
+++ b/RELEASE_NOTES.rst
@@ -7956,7 +7956,7 @@ Improvement
 - [AIRFLOW-3862] Check types with mypy. (#4685)
 - [AIRFLOW-251] Add option SQL_ALCHEMY_SCHEMA parameter to specify schema for metadata (#4199)
 - [AIRFLOW-1814] Temple PythonOperator {op_args,op_kwargs} fields (#4691)
-- [AIRFLOW-3730] Standarization use of logs mechanisms (#4556)
+- [AIRFLOW-3730] Standardization use of logs mechanisms (#4556)
 - [AIRFLOW-3770] Validation of documentation on CI] (#4593)
 - [AIRFLOW-3866] Run docker-compose pull silently in CI (#4688)
 - [AIRFLOW-3685] Move licence header check (#4497)
diff --git a/airflow/providers/sftp/hooks/sftp.py b/airflow/providers/sftp/hooks/sftp.py
index 94bb806c13d8e..450b911003819 100644
--- a/airflow/providers/sftp/hooks/sftp.py
+++ b/airflow/providers/sftp/hooks/sftp.py
@@ -305,7 +305,7 @@ def walktree(
     ) -> None:
         """
         Recursively descend, depth first, the directory tree rooted at
-        path, calling discreet callback functions for each regular file,
+        path, calling discrete callback functions for each regular file,
         directory and unknown file type.
 
         :param str path:
diff --git a/airflow/utils/code_utils.py b/airflow/utils/code_utils.py
index b5723ce7ef083..7783fec0a1edb 100644
--- a/airflow/utils/code_utils.py
+++ b/airflow/utils/code_utils.py
@@ -56,7 +56,7 @@ def prepare_code_snippet(file_path: str, line_no: int, context_lines_count: int
     """
     Prepare code snippet with line numbers and  a specific line marked.
 
-    :param file_path: File nam
+    :param file_path: File name
     :param line_no: Line number
     :param context_lines_count: The number of lines that will be cut before and after.
     :return: str
diff --git a/dev/breeze/doc/adr/0002-implement-standalone-python-command.md b/dev/breeze/doc/adr/0002-implement-standalone-python-command.md
index b8b56d7588ef9..8aab0db417534 100644
--- a/dev/breeze/doc/adr/0002-implement-standalone-python-command.md
+++ b/dev/breeze/doc/adr/0002-implement-standalone-python-command.md
@@ -127,7 +127,7 @@ The main decision is:
 **Vast majority of both Breeze and our CI scripts should be Python-based**
 
 There are likely a number of scripts that will remain in Bash, but they should contain no sophisticated
-logic, they should not haave common code in form of libraries and only used to execute simple tasks inside
+logic, they should not have common code in form of libraries and only used to execute simple tasks inside
 Docker containers. No Bash should ever be used in the host environment.
 
 There are a few properties of Breeze/CI scripts that should be maintained though
diff --git a/dev/stats/get_important_pr_candidates.py b/dev/stats/get_important_pr_candidates.py
index 5e22966b35c8d..28a8081e01f7a 100755
--- a/dev/stats/get_important_pr_candidates.py
+++ b/dev/stats/get_important_pr_candidates.py
@@ -354,7 +354,7 @@ def verboseStr(self) -> str:
 )
 @click.option("--top-number", type=int, default=DEFAULT_TOP_PRS, help="The number of PRs to select")
 @click.option("--save", type=click.File("wb"), help="Save PR data to a pickle file")
-@click.option("--load", type=click.File("rb"), help="Load PR data from a file and recalcuate scores")
+@click.option("--load", type=click.File("rb"), help="Load PR data from a file and recalculate scores")
 @click.option("--verbose", is_flag="True", help="Print scoring details")
 def main(
     github_token: str,
diff --git a/docs/apache-airflow/extra-packages-ref.rst b/docs/apache-airflow/extra-packages-ref.rst
index 5787c72d4065d..e834154cfec54 100644
--- a/docs/apache-airflow/extra-packages-ref.rst
+++ b/docs/apache-airflow/extra-packages-ref.rst
@@ -300,7 +300,7 @@ These are extras that provide support for integration with external systems via
 Bundle extras
 -------------
 
-These are extras that install one ore more extras as a bundle. Note that these extras should only be used for "development" version
+These are extras that install one or more extras as a bundle. Note that these extras should only be used for "development" version
 of Airflow - i.e. when Airflow is installed from sources. Because of the way how bundle extras are constructed they might not
 work when airflow is installed from 'PyPI`.
 
diff --git a/docs/spelling_wordlist.txt b/docs/spelling_wordlist.txt
index 25c0670f57f56..64a9fefa6dfac 100644
--- a/docs/spelling_wordlist.txt
+++ b/docs/spelling_wordlist.txt
@@ -391,6 +391,7 @@ Decrypt
 decrypt
 decrypted
 Decrypts
+dedented
 deduplicate
 deduplication
 deepcopy
@@ -406,6 +407,7 @@ DependencyMixin
 deploymentUrl
 Deprecations
 deps
+deques
 deregister
 desc
 deserialization
@@ -1354,7 +1356,6 @@ ssm
 Stackdriver
 stackdriver
 stacktrace
-Standarization
 starttls
 StatefulSet
 StatefulSets
diff --git a/tests/providers/docker/operators/test_docker.py b/tests/providers/docker/operators/test_docker.py
index 0430e0ae2cb6a..02734eede8109 100644
--- a/tests/providers/docker/operators/test_docker.py
+++ b/tests/providers/docker/operators/test_docker.py
@@ -101,7 +101,7 @@ def test_execute(self):
             host_tmp_dir="/host/airflow",
             container_name="test_container",
             tty=True,
-            hostname="test.contrainer.host",
+            hostname="test.container.host",
             device_requests=[DeviceRequest(count=-1, capabilities=[["gpu"]])],
             log_opts_max_file="5",
             log_opts_max_size="10m",
@@ -128,7 +128,7 @@ def test_execute(self):
             entrypoint=["sh", "-c"],
             working_dir="/container/path",
             tty=True,
-            hostname="test.contrainer.host",
+            hostname="test.container.host",
         )
         self.client_mock.create_host_config.assert_called_once_with(
             mounts=[
@@ -185,7 +185,7 @@ def test_execute_no_temp_dir(self):
             shm_size=1000,
             host_tmp_dir="/host/airflow",
             container_name="test_container",
-            hostname="test.contrainer.host",
+            hostname="test.container.host",
             tty=True,
         )
         operator.execute(None)
@@ -204,7 +204,7 @@ def test_execute_no_temp_dir(self):
             entrypoint=["sh", "-c"],
             working_dir="/container/path",
             tty=True,
-            hostname="test.contrainer.host",
+            hostname="test.container.host",
         )
         self.client_mock.create_host_config.assert_called_once_with(
             mounts=[
diff --git a/tests/www/test_utils.py b/tests/www/test_utils.py
index 33b0cc6487ae3..f07e75ba6729c 100644
--- a/tests/www/test_utils.py
+++ b/tests/www/test_utils.py
@@ -266,7 +266,7 @@ def test_wrapped_markdown_with_raw_code_block(self):
         assert (
             """<div class="rich_doc" ><h1>Markdown code block</h1>
 <p>Inline <code>code</code> works well.</p>
-<pre><code>Code block\ndoes not\nrespect\nnewlines\n</code></pre>
+<pre><code>Code block\nodes not\nrespect\nnewlines\n</code></pre>
 </div>"""
             == rendered
         )

From e83e52366c8c1afc9b918f223c7db3c34a38dd05 Mon Sep 17 00:00:00 2001
From: Kaxil Naik <kaxilnaik@gmail.com>
Date: Sat, 24 Dec 2022 02:16:40 +0000
Subject: [PATCH 2/4] Apply suggestions from code review

---
 tests/www/test_utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/www/test_utils.py b/tests/www/test_utils.py
index f07e75ba6729c..33b0cc6487ae3 100644
--- a/tests/www/test_utils.py
+++ b/tests/www/test_utils.py
@@ -266,7 +266,7 @@ def test_wrapped_markdown_with_raw_code_block(self):
         assert (
             """<div class="rich_doc" ><h1>Markdown code block</h1>
 <p>Inline <code>code</code> works well.</p>
-<pre><code>Code block\nodes not\nrespect\nnewlines\n</code></pre>
+<pre><code>Code block\ndoes not\nrespect\nnewlines\n</code></pre>
 </div>"""
             == rendered
         )

From fff07a3639b130a749495e2f3a23ae59b92a71dd Mon Sep 17 00:00:00 2001
From: Kaxil Naik <kaxilnaik@gmail.com>
Date: Sat, 24 Dec 2022 02:39:32 +0000
Subject: [PATCH 3/4] Apply suggestions from code review

---
 .codespellignorelines | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.codespellignorelines b/.codespellignorelines
index 2ab53778310fa..428f6761d5da3 100644
--- a/.codespellignorelines
+++ b/.codespellignorelines
@@ -2,3 +2,5 @@
         for frm in source_query.selectable.froms:
     roles = relationship("Role", secondary=assoc_user_role, backref="user", lazy="selectin")
     The platform supports **C**reate, **R**ead, **U**pdate, and **D**elete operations on most resources.
+
+<pre><code>Code block\ndoes not\nrespect\nnewlines\n</code></pre>

From 0b8f7dfc5c42c8a354e203dd7e38680ae1e4f1ec Mon Sep 17 00:00:00 2001
From: Kaxil Naik <kaxilnaik@gmail.com>
Date: Sat, 24 Dec 2022 02:40:00 +0000
Subject: [PATCH 4/4] Apply suggestions from code review

---
 .codespellignorelines | 1 -
 1 file changed, 1 deletion(-)

diff --git a/.codespellignorelines b/.codespellignorelines
index 428f6761d5da3..4b0179fdc9737 100644
--- a/.codespellignorelines
+++ b/.codespellignorelines
@@ -2,5 +2,4 @@
         for frm in source_query.selectable.froms:
     roles = relationship("Role", secondary=assoc_user_role, backref="user", lazy="selectin")
     The platform supports **C**reate, **R**ead, **U**pdate, and **D**elete operations on most resources.
-
 <pre><code>Code block\ndoes not\nrespect\nnewlines\n</code></pre>
