From 1d071234fc2d933ba12cdd157ed73bde4ae329b8 Mon Sep 17 00:00:00 2001 From: Tatiana Al-Chueyr Date: Tue, 3 Jun 2025 10:04:51 +0100 Subject: [PATCH 1/4] Check if MyPy issue happens with a newer Airflow --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 93d4bebdbf..d1fc7e0864 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: test on: push: # Run on pushes to the default branch - branches: [main] + branches: [main, mypy-fix] pull_request_target: # Also run on pull requests originated from forks branches: [main] @@ -28,11 +28,11 @@ jobs: - uses: actions/setup-python@v5 with: - python-version: "3.9" + python-version: "3.10" architecture: "x64" - run: pip3 install hatch - - run: hatch run tests.py3.9-2.8-1.9:type-check + - run: hatch run tests.py3.10-2.10-1.9:type-check Run-Unit-Tests: runs-on: ubuntu-latest From c24ac64459a9067e69ddb018e37474e8c546b567 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 2 Jun 2025 18:28:03 +0000 Subject: [PATCH 2/4] =?UTF-8?q?=E2=AC=86=20[pre-commit.ci]=20pre-commit=20?= =?UTF-8?q?autoupdate?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.11.11 → v0.11.12](https://github.com/astral-sh/ruff-pre-commit/compare/v0.11.11...v0.11.12) - [github.com/pre-commit/mirrors-mypy: v1.15.0 → v1.16.0](https://github.com/pre-commit/mirrors-mypy/compare/v1.15.0...v1.16.0) --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ffb776ba59..1092102837 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -57,7 +57,7 @@ repos: - --py37-plus - --keep-runtime-typing - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.11 + rev: v0.11.12 hooks: - id: ruff args: @@ -74,7 +74,7 @@ repos: alias: black additional_dependencies: [black>=22.10.0] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.15.0" + rev: "v1.16.0" hooks: - id: mypy From 2b00c2a9b1a67594e0912e90bb2befb25c0bf5f5 Mon Sep 17 00:00:00 2001 From: Tatiana Al-Chueyr Date: Tue, 3 Jun 2025 10:54:14 +0100 Subject: [PATCH 3/4] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1092102837..2a14515648 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -74,7 +74,7 @@ repos: alias: black additional_dependencies: [black>=22.10.0] - repo: https://github.com/pre-commit/mirrors-mypy - rev: "v1.16.0" + rev: "v1.15.0" hooks: - id: mypy From 73e9071c42c3a16028fbbf1a8ebffd1c70792a15 Mon Sep 17 00:00:00 2001 From: Tatiana Al-Chueyr Date: Tue, 3 Jun 2025 12:17:41 +0100 Subject: [PATCH 4/4] Apply suggestions from code review --- .github/workflows/test.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d1fc7e0864..93d4bebdbf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: test on: push: # Run on pushes to the default branch - branches: [main, mypy-fix] + branches: [main] pull_request_target: # Also run on pull requests originated from forks branches: [main] @@ -28,11 +28,11 @@ jobs: - uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.9" architecture: "x64" - run: pip3 install hatch - - run: hatch run tests.py3.10-2.10-1.9:type-check + - run: hatch run tests.py3.9-2.8-1.9:type-check Run-Unit-Tests: runs-on: ubuntu-latest