diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 99418897e7a03..09e8f95c4dde1 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 cfc4bbaf640a1..a4a6f67da0e2c 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 4a6d5475c48c3..5b1dda69493ac 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 5ea3a0cd9feea..b432ef04c0e2c 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 @@ def test_extract_xcom_success(self, mock_exec_xcom_kill, mock_exec_pod_command, @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 52bbd906801fc..814e412ee0fc5 100644 --- a/tests/providers/google/cloud/hooks/test_vision.py +++ b/tests/providers/google/cloud/hooks/test_vision.py @@ -332,7 +332,6 @@ def test_update_productset_explicit_name_different_from_constructed(self, get_co 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 9d431ace59675..fdb5098ff45bc 100644 --- a/tests/utils/test_cli_util.py +++ b/tests/utils/test_cli_util.py @@ -142,7 +142,7 @@ def test_cli_create_user_supplied_password_is_masked( "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