From 1da8ce165387aebed1d1dd82e60fc6f990325423 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 21:04:25 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/pre-commit/pre-commit-hooks: v4.6.0 → v5.0.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.6.0...v5.0.0) - [github.com/tcort/markdown-link-check: v3.12.2 → v3.13.6](https://github.com/tcort/markdown-link-check/compare/v3.12.2...v3.13.6) - [github.com/psf/black: 24.4.2 → 25.1.0](https://github.com/psf/black/compare/24.4.2...25.1.0) - [github.com/asottile/blacken-docs: 1.18.0 → 1.19.1](https://github.com/asottile/blacken-docs/compare/1.18.0...1.19.1) - [github.com/astral-sh/ruff-pre-commit: v0.5.5 → v0.9.4](https://github.com/astral-sh/ruff-pre-commit/compare/v0.5.5...v0.9.4) - [github.com/codespell-project/codespell: v2.3.0 → v2.4.1](https://github.com/codespell-project/codespell/compare/v2.3.0...v2.4.1) - [github.com/PyCQA/bandit: 1.7.9 → 1.8.2](https://github.com/PyCQA/bandit/compare/1.7.9...1.8.2) - [github.com/rhysd/actionlint: v1.7.1 → v1.7.7](https://github.com/rhysd/actionlint/compare/v1.7.1...v1.7.7) --- .pre-commit-config.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 34159dabd..0a60549f7 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,7 +8,7 @@ repos: - id: check-useless-excludes - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.6.0 + rev: v5.0.0 hooks: - id: check-merge-conflict - id: check-toml @@ -38,30 +38,30 @@ repos: - id: remove-tabs - repo: https://github.com/tcort/markdown-link-check - rev: v3.12.2 + rev: v3.13.6 hooks: - id: markdown-link-check args: ["--config=mlc-config.json"] - repo: https://github.com/psf/black - rev: 24.4.2 + rev: 25.1.0 hooks: - id: black - repo: https://github.com/asottile/blacken-docs - rev: 1.18.0 + rev: 1.19.1 hooks: - id: blacken-docs additional_dependencies: [black==22.3.0] - repo: https://github.com/astral-sh/ruff-pre-commit - rev: 'v0.5.5' + rev: 'v0.9.4' hooks: - id: ruff args: ["--config", "./pyproject.toml"] - repo: https://github.com/codespell-project/codespell - rev: v2.3.0 + rev: v2.4.1 hooks: - id: codespell name: Run codespell to check for common misspellings in files @@ -90,7 +90,7 @@ repos: additional_dependencies: ['toml'] - repo: https://github.com/PyCQA/bandit - rev: 1.7.9 + rev: 1.8.2 hooks: - id: bandit # Excluding Example DAGs temporarily until they can be fixed @@ -99,7 +99,7 @@ repos: additional_dependencies: [".[toml]"] - repo: https://github.com/rhysd/actionlint - rev: v1.7.1 + rev: v1.7.7 hooks: - id: actionlint args: ["-ignore", "shellcheck"] From 0eb21a20aea1f9210f4081dd5ea89bd329c5602e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 3 Feb 2025 21:05:26 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/snowflake/sensors/test_snowflake.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/snowflake/sensors/test_snowflake.py b/tests/snowflake/sensors/test_snowflake.py index 10c49348e..4b44d6dab 100644 --- a/tests/snowflake/sensors/test_snowflake.py +++ b/tests/snowflake/sensors/test_snowflake.py @@ -110,7 +110,7 @@ def test_execute_complete_validate(self): success=dummy_callable, ) - result = sensor.execute_complete(context=None, event={"status": "validate", "result": [[(True)]]}) + result = sensor.execute_complete(context=None, event={"status": "validate", "result": [[True]]}) assert result is None @mock.patch("astronomer.providers.snowflake.sensors.snowflake.SnowflakeSensorAsync._defer") @@ -123,9 +123,7 @@ def test_execute_complete_validate_false(self, mock_defer): success=dummy_callable_false, ) - sensor.execute_complete( - context=None, event={"status": "validate", "result": [[(True)]], "message": ""} - ) + sensor.execute_complete(context=None, event={"status": "validate", "result": [[True]], "message": ""}) mock_defer.assert_called_once() def test_soft_fail_enable(self, context):