This is an automated email from the ASF dual-hosted git repository.
eladkal pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push:
new de60b7bd49 Update to latest pre-commit (#40529)
de60b7bd49 is described below
commit de60b7bd499d4a87c5f4c076bcb3ec7385b49874
Author: Jarek Potiuk <[email protected]>
AuthorDate: Tue Jul 2 06:34:30 2024 +0200
Update to latest pre-commit (#40529)
---
.pre-commit-config.yaml | 6 +++---
contributing-docs/testing/k8s_tests.rst | 2 +-
docs/spelling_wordlist.txt | 3 +++
tests/providers/cncf/kubernetes/utils/test_pod_manager.py | 2 +-
tests/providers/google/cloud/hooks/test_vision.py | 1 -
tests/utils/test_cli_util.py | 2 +-
6 files changed, 9 insertions(+), 7 deletions(-)
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 99418897e7..09e8f95c4d 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -211,7 +211,7 @@ repos:
pass_filenames: false
require_serial: true
- repo: https://github.com/asottile/blacken-docs
- rev: 1.16.0
+ rev: 1.18.0
hooks:
- id: blacken-docs
name: Run black on Python code blocks in documentation files
@@ -224,7 +224,7 @@ repos:
alias: blacken-docs
additional_dependencies: [black==23.10.0]
- repo: https://github.com/pre-commit/pre-commit-hooks
- rev: v4.5.0
+ rev: v4.6.0
hooks:
- id: check-merge-conflict
name: Check that merge conflicts are not being committed
@@ -297,7 +297,7 @@ repos:
- --line-length
- '99999'
- repo: https://github.com/codespell-project/codespell
- rev: v2.2.6
+ rev: v2.3.0
hooks:
- id: codespell
name: Run codespell to check for common misspellings in files
diff --git a/contributing-docs/testing/k8s_tests.rst
b/contributing-docs/testing/k8s_tests.rst
index cfc4bbaf64..a4a6f67da0 100644
--- a/contributing-docs/testing/k8s_tests.rst
+++ b/contributing-docs/testing/k8s_tests.rst
@@ -365,7 +365,7 @@ Should show the status of current KinD cluster.
Note, that this command by default uses ``--use-uv`` flag to use ``uv`` to
build the image instead of
``pip``. This is much faster (50% faster) to rebuild the image and iterate
with your code but if you
built your PROD image without ``--use-uv`` flag the first build might be a
bit longer. You can also switch
- to using a ``pip`` based image by specifyin ``--no-use-uv`` flag together
with ``--rebuid-base-image``.
+ to using a ``pip`` based image by specifying ``--no-use-uv`` flag together
with ``--rebuid-base-image``.
.. code-block:: bash
diff --git a/docs/spelling_wordlist.txt b/docs/spelling_wordlist.txt
index 4a6d5475c4..5b1dda6949 100644
--- a/docs/spelling_wordlist.txt
+++ b/docs/spelling_wordlist.txt
@@ -1088,6 +1088,8 @@ noqa
nosasl
NotFound
notificationChannels
+NotIn
+notin
npm
ns
ntlm
@@ -1649,6 +1651,7 @@ Tez
tez
theService
Thinknear
+THIRDPARTY
TicketAudit
timedelta
timedeltas
diff --git a/tests/providers/cncf/kubernetes/utils/test_pod_manager.py
b/tests/providers/cncf/kubernetes/utils/test_pod_manager.py
index 5ea3a0cd9f..b432ef04c0 100644
--- a/tests/providers/cncf/kubernetes/utils/test_pod_manager.py
+++ b/tests/providers/cncf/kubernetes/utils/test_pod_manager.py
@@ -571,7 +571,7 @@ class TestPodManager:
@mock.patch("airflow.providers.cncf.kubernetes.utils.pod_manager.PodManager.extract_xcom_kill")
def test_extract_xcom_failure(self, mock_exec_xcom_kill,
mock_exec_pod_command, mock_kubernetes_stream):
"""test when invalid json is retrieved from xcom sidecar container."""
- xcom_json = """{"a": "tru"""
+ xcom_json = """{"a": "tru""" # codespell:ignore tru
mock_pod = MagicMock()
mock_exec_pod_command.return_value = xcom_json
with pytest.raises(JSONDecodeError):
diff --git a/tests/providers/google/cloud/hooks/test_vision.py
b/tests/providers/google/cloud/hooks/test_vision.py
index 52bbd90680..814e412ee0 100644
--- a/tests/providers/google/cloud/hooks/test_vision.py
+++ b/tests/providers/google/cloud/hooks/test_vision.py
@@ -332,7 +332,6 @@ class TestGcpVisionHook:
metadata=(),
)
err = ctx.value
- # self.assertIn("The required parameter 'project_id' is missing",
str(err))
assert err
assert ERR_DIFF_NAMES.format(
explicit_name=explicit_ps_name,
diff --git a/tests/utils/test_cli_util.py b/tests/utils/test_cli_util.py
index 9d431ace59..fdb5098ff4 100644
--- a/tests/utils/test_cli_util.py
+++ b/tests/utils/test_cli_util.py
@@ -142,7 +142,7 @@ class TestCliUtil:
"airflow.utils.session.create_session"
) as mock_create_session:
metrics = cli._build_metrics(args[1], namespace)
- # Make it so the default_action_log doesn't actually commit the
txn, by giving it a nexted txn
+ # Make it so the default_action_log doesn't actually commit the
txn, by giving it a next txn
# instead
mock_create_session.return_value = session.begin_nested()
mock_create_session.return_value.bulk_insert_mappings =
session.bulk_insert_mappings