Skip to content

Commit

Permalink
Update to latest pre-commit (#40529)
Browse files Browse the repository at this point in the history
(cherry picked from commit de60b7b)
  • Loading branch information
potiuk authored and utkarsharma2 committed Jul 2, 2024
1 parent 8f77c82 commit d67a786
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion contributing-docs/testing/k8s_tests.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions docs/spelling_wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,8 @@ noqa
nosasl
NotFound
notificationChannels
NotIn
notin
npm
ns
ntlm
Expand Down Expand Up @@ -1628,6 +1630,7 @@ Tez
tez
theService
Thinknear
THIRDPARTY
TicketAudit
timedelta
timedeltas
Expand Down
1 change: 0 additions & 1 deletion tests/providers/google/cloud/hooks/test_vision.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tests/utils/test_cli_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,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
Expand Down

0 comments on commit d67a786

Please sign in to comment.