You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ra...@apache.org on 2026/04/23 05:04:09 UTC

(airflow) 29/48: [v3-2-test] Isolate non-provider mypy hooks per distribution with dedicated .build/ venvs (#65492) (#65549)

This is an automated email from the ASF dual-hosted git repository.

vatsrahul1001 pushed a commit to branch v3-2-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 39036dfe9c2648c2a2ab3c22421d5084e48c7561
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Tue Apr 21 01:50:55 2026 +0200

    [v3-2-test] Isolate non-provider mypy hooks per distribution with dedicated .build/ venvs (#65492) (#65549)
    
    * Isolate mypy prek hooks, cover all non-provider dirs, and clean up type errors
    
    Each non-provider mypy prek hook now builds and caches its own virtualenv
    at .build/mypy-venvs/<hook>/ and its own mypy cache at
    .build/mypy-caches/<hook>/. UV_PROJECT_ENVIRONMENT redirects uv away from
    the project's .venv, so running the hook never mutates a contributor's
    regular development environment while still matching CI's frozen
    dependency set. Mypy runs with --follow-imports=silent so each hook only
    reports errors for files it owns; transitive code is covered by its own
    hook and different venvs no longer produce divergent results on shared
    code.
    
    Adds mypy hooks for the non-provider directories that were previously
    uncovered: airflow-ctl-tests, helm-tests, airflow-e2e-tests,
    task-sdk-integration-tests, docker-tests, kubernetes-tests, and shared.
    The mypy-shared hook iterates every shared/<dist> workspace distribution
    and builds a separate venv + cache per distribution so each shared
    library is type-checked against its own dependency set.
    
    breeze down --cleanup-mypy-cache additionally removes
    .build/mypy-venvs/ and .build/mypy-caches/ so all per-hook state is
    wiped alongside the existing .mypy_cache and mypy-cache-volume.
    
    Also fixes pre-existing type errors surfaced by the newly added and
    cleaned-up checks: platform-specific ignores for Linux-only
    os.posix_fadvise in the shared logging helper, narrower types and
    type: ignore where appropriate in shared configuration/observability/
    timezones/secrets_backend/secrets_masker, Liskov override markers on
    the AirflowConfigParser subclass methods, and small correctness fixes
    in dev/breeze and the docker-tests / kubernetes-tests helpers so the
    full non-provider mypy suite runs clean on macOS and in CI.
    
    * Move mypy prek hooks to their respective distribution configs
    
    The new mypy hooks for airflow-ctl-tests, helm-tests, airflow-e2e-tests,
    task-sdk-integration-tests, docker-tests, and kubernetes-tests now live
    in each distribution's own .pre-commit-config.yaml, matching the pattern
    already used by airflow-core, task-sdk, and airflow-ctl. New .pre-commit-
    config.yaml files are added to distributions that didn't have one. prek
    auto-discovers nested configs, so the hooks remain part of the default
    check set.
    
    mypy-dev (covers dev + scripts), mypy-devel-common, and mypy-shared stay
    at the repo root: dev/scripts/devel-common don't have their own configs,
    and mypy-shared iterates every shared/<dist> distribution so has no
    single home.
    
    * Split mypy-dev and mypy-scripts, each with its own pyproject.toml config
    
    Previously the mypy-dev prek hook ran mypy against dev/ and scripts/ in
    a single invocation under the dev project's virtualenv. The two now get
    independent hooks — mypy-dev in dev/.pre-commit-config.yaml and
    mypy-scripts in scripts/.pre-commit-config.yaml — so each can evolve its
    own dependency set and check its own folder.
    
    Copy the full [tool.mypy] section from the root pyproject.toml into both
    dev/pyproject.toml and scripts/pyproject.toml so each sub-project owns its
    mypy configuration. Paths inside mypy_path are rewritten from
    $MYPY_CONFIG_FILE_DIR/ to $MYPY_CONFIG_FILE_DIR/../ so they still resolve
    to the repo-root siblings from the sub-project location. The decorator/
    outputs plugins are scoped to dev only (scripts does not author DAG code).
    
    mypy_local_folder.py now passes --config-file <project>/pyproject.toml
    when the folder maps to one of these sub-project configs, so mypy uses
    the sub-project's configuration rather than the root one.
    
    * Teach selective-checks about the new non-provider mypy hooks
    
    Add FileGroupForCi entries and regex patterns for helm-tests,
    airflow-e2e-tests, docker-tests, kubernetes-tests, scripts, and shared
    Python files, then wire them into skip_prek_hooks so the corresponding
    mypy-* prek hook is only kept when its folder changed:
    
    - mypy-scripts (split off from the old combined mypy-dev)
    - mypy-airflow-ctl-tests, mypy-helm-tests, mypy-airflow-e2e-tests,
      mypy-task-sdk-integration-tests, mypy-docker-tests, mypy-kubernetes-tests
    - mypy-shared
    
    Update test_selective_checks.py skip-list constants and per-case inline
    skip lists to include the new hooks. Targeted test cases for files under
    the new-hook directories override skip-prek-hooks to leave the matching
    hook out of the skip set, confirming it will run when its folder changes.
    
    * Trim dev/scripts pyproject mypy_path to just relevant distributions
    
    Drop the 200+ provider path entries that were blindly copied from the root
    pyproject.toml. dev and scripts only import from other non-provider
    workspace members, so listing every provider src/tests directory under
    mypy_path just adds noise. The remaining non-provider entries cover
    everything dev or scripts plausibly import from.
    
    * Install mypy into per-hook venvs from uv.lock via a `mypy` dep group
    
    Each non-provider distribution with a mypy prek hook now declares a
    `mypy` dependency group in its pyproject.toml resolving to
    `apache-airflow-devel-common[mypy]`. mypy_local_folder.py syncs each
    dedicated virtualenv with `uv sync --frozen --project <X> --group mypy`
    and runs mypy with `uv run --frozen --project <X> --group mypy` — so
    mypy and its type stubs come from the workspace uv.lock, not from an
    ephemeral `--with` overlay whose resolution is independent of the main
    lockfile. uv.lock is refreshed to include the new group.
    
    Covers airflow-core, task-sdk, airflow-ctl, devel-common, dev, scripts,
    airflow-ctl-tests, helm-tests, airflow-e2e-tests, task-sdk-integration-
    tests, docker-tests, kubernetes-tests, and every shared/<dist>
    workspace member.
    
    * Drop mypy_path from dev/scripts pyprojects — venv site-packages is enough
    
    After the switch to installing mypy (and every transitive workspace
    dependency) directly into each hook's virtualenv via the `mypy` dep
    group, workspace packages like airflow, airflow.sdk, airflowctl,
    airflow_breeze, tests_common are all available via the venv's
    site-packages. mypy resolves them without needing mypy_path entries,
    so drop the copied list and leave a short comment explaining why.
    
    * Split mypy-shared into per-distribution hooks and enforce the pattern
    
    Each shared/<dist> workspace member now owns a mypy-shared-<dist> prek hook
    backed by its own shared/<dist>/.pre-commit-config.yaml. The single
    mypy-shared iterator is gone — mypy_local_folder.py accepts shared/<dist>
    as a first-class folder and the per-hook virtualenv now lives at
    .build/mypy-venvs/shared-<dist>/ (slash in the folder name is replaced
    with a dash in the venv/cache path).
    
    Adds a new check-shared-mypy-hooks prek hook that fails when a
    shared/<dist> workspace member is missing its dedicated .pre-commit-
    config.yaml, printing the exact YAML to add. Selective-checks emits one
    skip entry per dist, enumerated from shared/ at run time. Contributing
    docs cover the two-step process for adding a new shared library.
    
    * Pin minimum_prek_version to 0.3.4 consistently across all configs
    
    All .pre-commit-config.yaml files now require prek >= 0.3.4 (the version
    already declared by the root config). Previously the nested configs
    pinned a mix of 0.2.0, 0.3.2, and 0.3.4, so a contributor could pass the
    root's version check and still trip on stale subproject pins as they
    moved between directories.
    
    * Refresh uv.lock after rebase to reflect the `mypy` dep groups
    
    The rebase onto main resolved the uv.lock conflict by taking main's
    version, so `uv sync --group mypy` would fail against uv.lock until
    the groups added to the per-distribution pyprojects were re-resolved.
    Regenerates the lockfile to include them.
    
    * Add explicit selective-checks test for per-shared-dist mypy hook skipping
    
    Verifies that when a file under shared/logging/ changes, only
    mypy-shared-logging is kept among the thirteen mypy-shared-* hooks;
    all other shared distributions' hooks land in the skip list. Pins the
    contract that the runtime enumeration over shared/*/pyproject.toml
    works as intended.
    
    * Refresh mypy docs to match the per-hook venv + --group mypy workflow
    
    Fills in the docs that still referenced the pre-split workflow:
    
    - AGENTS.md: mentions `mypy-shared-<dist>` per shared workspace member and
      the `uv sync --group mypy` install path for mypy itself.
    - scripts/ci/prek/AGENTS.md: clarifies that non-provider mypy hooks run
      locally through mypy_local_folder.py (Breeze image only needed for the
      providers hook).
    - dev/breeze/doc/03_developer_tasks.rst: renames stale `mypy-airflow` to
      `mypy-airflow-core`, and expands the cache note to cover the per-hook
      virtualenvs and caches under .build/.
    - dev/breeze/doc/ci/04_selective_checks.md: expands the file-group and
      skip-reason lists so every new mypy hook (scripts, task-sdk, airflow-ctl,
      the six test-dir hooks, and mypy-shared-<dist> enumerated at runtime)
      is documented.
    
    * Rename mypy_local_folder.py to run_mypy_full_dist_local_venv_or_breeze_in_ci.py
    
    Updates every .pre-commit-config.yaml entry and prose references so they
    point at the new script name. Two shared configs use YAML folded-scalar
    entries to stay under the 110-char yamllint limit; updates the validation
    script's expected template to match.
    (cherry picked from commit 4f3b228be1a785ea5df7b89d8d3291ded78fea4d)
---
 .pre-commit-config.yaml                            |  14 +-
 AGENTS.md                                          |   2 +-
 airflow-core/.pre-commit-config.yaml               |   4 +-
 airflow-core/pyproject.toml                        |   4 +
 airflow-ctl-tests/.pre-commit-config.yaml          |   9 +-
 airflow-ctl-tests/pyproject.toml                   |   5 +
 airflow-ctl/.pre-commit-config.yaml                |   4 +-
 airflow-ctl/pyproject.toml                         |   4 +
 .../.pre-commit-config.yaml                        |  13 +-
 airflow-e2e-tests/pyproject.toml                   |   5 +
 chart/.pre-commit-config.yaml                      |   2 +-
 contributing-docs/08_static_code_checks.rst        |  46 ++-
 {airflow-ctl-tests => dev}/.pre-commit-config.yaml |  13 +-
 dev/breeze/doc/03_developer_tasks.rst              |  22 +-
 dev/breeze/doc/ci/04_selective_checks.md           |  24 +-
 .../airflow_breeze/commands/developer_commands.py  |   5 +
 .../commands/release_candidate_command.py          |   3 +
 .../airflow_breeze/commands/testing_commands.py    |   2 +-
 .../src/airflow_breeze/utils/reproducible.py       |   2 +-
 .../src/airflow_breeze/utils/selective_checks.py   |  50 +++
 dev/breeze/tests/test_selective_checks.py          | 181 +++++++++--
 dev/pyproject.toml                                 |  70 ++++
 devel-common/pyproject.toml                        |   4 +
 .../.pre-commit-config.yaml                        |  13 +-
 docker-tests/pyproject.toml                        |   5 +
 .../test_docker_compose_quick_start.py             |   2 +-
 docker-tests/tests/docker_tests/test_prod_image.py |   2 +-
 go-sdk/.pre-commit-config.yaml                     |   2 +-
 .../.pre-commit-config.yaml                        |  13 +-
 helm-tests/pyproject.toml                          |   5 +
 .../.pre-commit-config.yaml                        |  13 +-
 kubernetes-tests/pyproject.toml                    |   5 +
 .../tests/kubernetes_tests/test_base.py            |   4 +-
 .../test_kubernetes_pod_operator.py                |   2 +-
 providers/.pre-commit-config.yaml                  |   2 +-
 providers/common/ai/.pre-commit-config.yaml        |   2 +-
 providers/common/compat/.pre-commit-config.yaml    |   2 +-
 providers/edge3/.pre-commit-config.yaml            |   2 +-
 providers/fab/.pre-commit-config.yaml              |   2 +-
 providers/keycloak/.pre-commit-config.yaml         |   2 +-
 .../.pre-commit-config.yaml                        |  13 +-
 scripts/ci/prek/AGENTS.md                          |   9 +-
 scripts/ci/prek/check_shared_mypy_hooks.py         |  92 ++++++
 scripts/ci/prek/mypy_local_folder.py               | 250 --------------
 ...un_mypy_full_dist_local_venv_or_breeze_in_ci.py | 325 +++++++++++++++++++
 scripts/pyproject.toml                             |  65 ++++
 .../configuration}/.pre-commit-config.yaml         |  13 +-
 shared/configuration/pyproject.toml                |   4 +
 .../src/airflow_shared/configuration/parser.py     |  12 +-
 .../dagnode}/.pre-commit-config.yaml               |  13 +-
 shared/dagnode/pyproject.toml                      |   4 +
 shared/dagnode/tests/dagnode/test_node.py          |   6 +-
 .../listeners}/.pre-commit-config.yaml             |  13 +-
 shared/listeners/pyproject.toml                    |   4 +
 .../logging}/.pre-commit-config.yaml               |  13 +-
 shared/logging/pyproject.toml                      |   4 +
 .../src/airflow_shared/logging/_noncaching.py      |   3 +-
 .../module_loading}/.pre-commit-config.yaml        |  13 +-
 shared/module_loading/pyproject.toml               |   4 +
 .../observability}/.pre-commit-config.yaml         |  13 +-
 shared/observability/pyproject.toml                |   4 +
 .../src/airflow_shared/observability/common.py     |  22 +-
 .../observability/metrics/otel_logger.py           |   2 +-
 .../airflow_shared/observability/metrics/stats.py  |   1 +
 .../plugins_manager}/.pre-commit-config.yaml       |  13 +-
 shared/plugins_manager/pyproject.toml              |   4 +
 .../providers_discovery}/.pre-commit-config.yaml   |  15 +-
 shared/providers_discovery/pyproject.toml          |   4 +
 .../secrets_backend}/.pre-commit-config.yaml       |  13 +-
 shared/secrets_backend/pyproject.toml              |   4 +
 .../src/airflow_shared/secrets_backend/base.py     |   2 +-
 .../secrets_masker}/.pre-commit-config.yaml        |  13 +-
 shared/secrets_masker/pyproject.toml               |   4 +
 .../tests/secrets_masker/test_secrets_masker.py    |   2 +-
 .../serialization}/.pre-commit-config.yaml         |  13 +-
 shared/serialization/pyproject.toml                |   4 +
 .../template_rendering}/.pre-commit-config.yaml    |  15 +-
 shared/template_rendering/pyproject.toml           |   4 +
 .../timezones}/.pre-commit-config.yaml             |  13 +-
 shared/timezones/pyproject.toml                    |   4 +
 .../src/airflow_shared/timezones/timezone.py       |   8 +-
 .../.pre-commit-config.yaml                        |  13 +-
 task-sdk-integration-tests/pyproject.toml          |   5 +
 task-sdk/.pre-commit-config.yaml                   |   4 +-
 task-sdk/pyproject.toml                            |   4 +
 task-sdk/src/airflow/sdk/execution_time/comms.py   |   4 +-
 uv.lock                                            | 360 ++++++++++++---------
 87 files changed, 1355 insertions(+), 638 deletions(-)

diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index ad5d533b2f4..3c879b5fc64 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -1021,19 +1021,19 @@ repos:
           ^uv\.lock$
         pass_filenames: false
         require_serial: true
-      - id: mypy-dev
-        name: Run mypy for dev
+      - id: mypy-devel-common
+        name: Run mypy for devel-common
         language: python
-        entry: ./scripts/ci/prek/mypy_local_folder.py dev scripts
+        entry: ./scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py devel-common
         pass_filenames: false
         files: ^.*\.py$
         require_serial: true
-      - id: mypy-devel-common
-        name: Run mypy for devel-common
+      - id: check-shared-mypy-hooks
+        name: Every shared/<dist> has a mypy-shared-<dist> prek hook
         language: python
-        entry: ./scripts/ci/prek/mypy_local_folder.py devel-common
+        entry: ./scripts/ci/prek/check_shared_mypy_hooks.py
         pass_filenames: false
-        files: ^.*\.py$
+        files: ^shared/.*|^scripts/ci/prek/check_shared_mypy_hooks\.py$
         require_serial: true
       ## ADD MOST PREK HOOK ABOVE THAT LINE
       # The below prek hooks are those requiring CI image to be built
diff --git a/AGENTS.md b/AGENTS.md
index f38bc2dd337..7836b9a52dd 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -30,7 +30,7 @@
 - **Run other suites of tests** `breeze testing <test_group>` (test groups: `airflow-ctl-tests`, `docker-compose-tests`, `task-sdk-tests`)
 - **Run scripts tests:** `uv run --project scripts pytest scripts/tests/ -xvs`
 - **Run Airflow CLI:** `breeze run airflow dags list`
-- **Type-check (non-providers):** first run `uv sync --frozen --project <PROJECT>` to align the local virtualenv with `uv.lock` (the dependency set CI uses), then `uv run --frozen --project <PROJECT> --with "apache-airflow-devel-common[mypy]" mypy path/to/code`
+- **Type-check (non-providers):** run the prek hook — `prek run mypy-<project> --all-files` (e.g. `mypy-airflow-core`, `mypy-task-sdk`, `mypy-shared-logging`; each `shared/<dist>` workspace member has its own `mypy-shared-<dist>` hook). The hook uses a dedicated virtualenv and mypy cache under `.build/mypy-venvs/<hook>/` and `.build/mypy-caches/<hook>/`; mypy itself is installed from `uv.lock` via the `mypy` dependency group (`uv sync --group mypy`), so it never mutates your project `.ve [...]
 - **Type-check (providers):** `breeze run mypy path/to/code`
 - **Lint with ruff only:** `prek run ruff --from-ref <target_branch>`
 - **Format with ruff only:** `prek run ruff-format --from-ref <target_branch>`
diff --git a/airflow-core/.pre-commit-config.yaml b/airflow-core/.pre-commit-config.yaml
index 3fb564eceb7..64ddae194ed 100644
--- a/airflow-core/.pre-commit-config.yaml
+++ b/airflow-core/.pre-commit-config.yaml
@@ -16,7 +16,7 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
   node: 22.19.0
@@ -224,7 +224,7 @@ repos:
       - id: mypy-airflow-core
         name: Run mypy for airflow-core
         language: python
-        entry: ../scripts/ci/prek/mypy_local_folder.py airflow-core
+        entry: ../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py airflow-core
         pass_filenames: false
         files: ^.*\.py$
         require_serial: true
diff --git a/airflow-core/pyproject.toml b/airflow-core/pyproject.toml
index bb8b250c159..f1a62d84d5b 100644
--- a/airflow-core/pyproject.toml
+++ b/airflow-core/pyproject.toml
@@ -311,6 +311,10 @@ dev = [
 docs = [
     "apache-airflow-devel-common[docs]"
 ]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
+
 
 
 [tool.uv]
diff --git a/airflow-ctl-tests/.pre-commit-config.yaml b/airflow-ctl-tests/.pre-commit-config.yaml
index f6213b0f9a8..1016fa939eb 100644
--- a/airflow-ctl-tests/.pre-commit-config.yaml
+++ b/airflow-ctl-tests/.pre-commit-config.yaml
@@ -16,7 +16,7 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
 repos:
@@ -30,3 +30,10 @@ repos:
         files:
           (?x)
           ^tests/airflowctl_tests/.*\.py$
+      - id: mypy-airflow-ctl-tests
+        name: Run mypy for airflow-ctl-tests
+        language: python
+        entry: ../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py airflow-ctl-tests
+        pass_filenames: false
+        files: ^.*\.py$
+        require_serial: true
diff --git a/airflow-ctl-tests/pyproject.toml b/airflow-ctl-tests/pyproject.toml
index b3b2f8cae84..70c9eac9005 100644
--- a/airflow-ctl-tests/pyproject.toml
+++ b/airflow-ctl-tests/pyproject.toml
@@ -76,3 +76,8 @@ exclude = ["*"]
 
 [tool.hatch.build.targets.wheel]
 bypass-selection = true
+
+[dependency-groups]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
diff --git a/airflow-ctl/.pre-commit-config.yaml b/airflow-ctl/.pre-commit-config.yaml
index a5773e94aab..4561533c574 100644
--- a/airflow-ctl/.pre-commit-config.yaml
+++ b/airflow-ctl/.pre-commit-config.yaml
@@ -16,7 +16,7 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
   node: 22.19.0
@@ -27,7 +27,7 @@ repos:
       - id: mypy-airflow-ctl
         name: Run mypy for airflow-ctl
         language: python
-        entry: ../scripts/ci/prek/mypy_local_folder.py airflow-ctl
+        entry: ../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py airflow-ctl
         pass_filenames: false
         files: ^.*\.py$
         require_serial: true
diff --git a/airflow-ctl/pyproject.toml b/airflow-ctl/pyproject.toml
index da794913269..9bd59aaa7ec 100644
--- a/airflow-ctl/pyproject.toml
+++ b/airflow-ctl/pyproject.toml
@@ -151,6 +151,10 @@ codegen = [
 ]
 
 # uv run --verbose --group codegen --project apache-airflow-ctl --directory airflow-ctl/ datamodel-codegen --url="http://0.0.0.0:28080/auth/openapi.json" --output=src/airflowctl/api/datamodels/auth_generated.py
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
+
 [tool.datamodel-codegen]
 capitalise-enum-members=true # `State.RUNNING` not `State.running`
 disable-timestamp=true
diff --git a/airflow-ctl-tests/.pre-commit-config.yaml b/airflow-e2e-tests/.pre-commit-config.yaml
similarity index 77%
copy from airflow-ctl-tests/.pre-commit-config.yaml
copy to airflow-e2e-tests/.pre-commit-config.yaml
index f6213b0f9a8..e3d6413706d 100644
--- a/airflow-ctl-tests/.pre-commit-config.yaml
+++ b/airflow-e2e-tests/.pre-commit-config.yaml
@@ -16,17 +16,16 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
 repos:
   - repo: local
     hooks:
-      - id: check-airflowctl-command-coverage
-        name: Check airflowctl CLI command test coverage
-        entry: ../scripts/ci/prek/check_airflowctl_command_coverage.py
+      - id: mypy-airflow-e2e-tests
+        name: Run mypy for airflow-e2e-tests
         language: python
+        entry: ../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py airflow-e2e-tests
         pass_filenames: false
-        files:
-          (?x)
-          ^tests/airflowctl_tests/.*\.py$
+        files: ^.*\.py$
+        require_serial: true
diff --git a/airflow-e2e-tests/pyproject.toml b/airflow-e2e-tests/pyproject.toml
index 394b80b2eee..3f93c6d07e7 100644
--- a/airflow-e2e-tests/pyproject.toml
+++ b/airflow-e2e-tests/pyproject.toml
@@ -77,3 +77,8 @@ exclude = ["*"]
 
 [tool.hatch.build.targets.wheel]
 bypass-selection = true
+
+[dependency-groups]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
diff --git a/chart/.pre-commit-config.yaml b/chart/.pre-commit-config.yaml
index f95650c5324..16634adb4e1 100644
--- a/chart/.pre-commit-config.yaml
+++ b/chart/.pre-commit-config.yaml
@@ -16,7 +16,7 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
   node: 22.19.0
diff --git a/contributing-docs/08_static_code_checks.rst b/contributing-docs/08_static_code_checks.rst
index 4eed1a98a13..01c5843677c 100644
--- a/contributing-docs/08_static_code_checks.rst
+++ b/contributing-docs/08_static_code_checks.rst
@@ -281,26 +281,39 @@ Mypy checks
 -----------
 
 When we run mypy checks locally, the ``mypy-*`` checks run depending on the files you are changing:
-``mypy-airflow-core``, ``mypy-dev``, ``mypy-providers``, ``mypy-task-sdk``, ``mypy-airflow-ctl``, etc.
+``mypy-airflow-core``, ``mypy-dev``, ``mypy-providers``, ``mypy-scripts``, ``mypy-task-sdk``,
+``mypy-airflow-ctl``, ``mypy-devel-common``, ``mypy-airflow-ctl-tests``, ``mypy-helm-tests``,
+``mypy-airflow-e2e-tests``, ``mypy-task-sdk-integration-tests``, ``mypy-docker-tests``,
+``mypy-kubernetes-tests``, and one ``mypy-shared-<dist>`` hook per ``shared/<dist>`` workspace
+distribution (e.g. ``mypy-shared-configuration``, ``mypy-shared-logging``).
 
-For **non-provider projects** (airflow-core, task-sdk, airflow-ctl, dev, scripts, devel-common), mypy
-runs locally using the ``uv`` virtualenv — no breeze CI image is needed. These checks run as regular
-prek hooks in the ``pre-commit`` stage, checking whole directories at once. This means they run both
-as part of local commits and as part of regular static checks in CI (not as separate mypy CI jobs).
+For **non-provider projects**, mypy runs locally using ``uv`` — no breeze CI image is needed. These
+checks run as regular prek hooks in the ``pre-commit`` stage, checking whole directories at once. This
+means they run both as part of local commits and as part of regular static checks in CI (not as
+separate mypy CI jobs).
 
-Before running mypy directly (or via the ``mypy-*`` prek hooks), synchronize your local virtualenv
-with ``uv.lock`` so it matches the dependency set CI uses — otherwise mypy may pick up a different
-set of installed packages than CI and produce results that diverge from CI:
+Each non-provider ``mypy-*`` hook uses a **dedicated virtualenv and mypy cache** under ``.build/`` so
+running mypy never mutates your regular project ``.venv`` and each hook keeps a stable, CI-aligned
+dependency set:
 
-.. code-block:: bash
+- virtualenvs: ``.build/mypy-venvs/<hook-name>/``
+- mypy caches: ``.build/mypy-caches/<hook-name>/``
 
-  uv sync --frozen --project <PROJECT>
+Adding a new shared library
+~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
-Then run mypy directly. Use ``--frozen`` so ``uv`` does not update ``uv.lock``:
+Every ``shared/<dist>`` workspace member has its own ``mypy-shared-<dist>`` prek hook so it is
+type-checked in isolation against its own dependency set. When you add a new shared library under
+``shared/<new-dist>/``, you also need to:
 
-.. code-block:: bash
+1. Add a ``[dependency-groups]`` section with ``mypy = ["apache-airflow-devel-common[mypy]"]`` in
+   ``shared/<new-dist>/pyproject.toml`` (so ``uv sync --group mypy`` installs mypy into the hook's
+   dedicated virtualenv).
+2. Create ``shared/<new-dist>/.pre-commit-config.yaml`` with a ``mypy-shared-<new-dist>`` hook
+   entry that calls ``../../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py shared/<new-dist>``.
 
-  uv run --frozen --project <PROJECT> --with "apache-airflow-devel-common[mypy]" mypy path/to/code
+The ``check-shared-mypy-hooks`` prek hook enforces step 2 — it fails and prints the exact config
+contents to add when any ``shared/<dist>`` is missing its dedicated mypy hook.
 
 To run the prek hook for a specific project (example for ``airflow-core`` files):
 
@@ -308,20 +321,19 @@ To run the prek hook for a specific project (example for ``airflow-core`` files)
 
   prek mypy-airflow-core --all-files
 
-To show unused mypy ignores for any providers/airflow etc, eg: run below command:
+To show unused mypy ignores, run:
 
 .. code-block:: bash
 
   export SHOW_UNUSED_MYPY_WARNINGS=true
   prek mypy-airflow-core --all-files
 
-For non-provider projects, the local mypy cache is stored in ``.mypy_cache`` at the repo root.
-
 For **providers**, mypy still runs via breeze (``breeze run mypy``) as a separate CI job and requires
 ``breeze ci-image build --python 3.10`` to be built locally. Providers use a separate docker-volume
 (called ``mypy-cache-volume``) that keeps the cache of last MyPy execution.
 
-To clear all mypy caches (both local ``.mypy_cache`` and the Docker volume), run
+To clear all mypy caches (the Docker volume used by providers, any legacy repo-root ``.mypy_cache``,
+and the per-hook venvs + caches under ``.build/mypy-venvs/`` and ``.build/mypy-caches/``), run
 ``breeze down --cleanup-mypy-cache``.
 
 -----------
diff --git a/airflow-ctl-tests/.pre-commit-config.yaml b/dev/.pre-commit-config.yaml
similarity index 77%
copy from airflow-ctl-tests/.pre-commit-config.yaml
copy to dev/.pre-commit-config.yaml
index f6213b0f9a8..f401bd97545 100644
--- a/airflow-ctl-tests/.pre-commit-config.yaml
+++ b/dev/.pre-commit-config.yaml
@@ -16,17 +16,16 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
 repos:
   - repo: local
     hooks:
-      - id: check-airflowctl-command-coverage
-        name: Check airflowctl CLI command test coverage
-        entry: ../scripts/ci/prek/check_airflowctl_command_coverage.py
+      - id: mypy-dev
+        name: Run mypy for dev
         language: python
+        entry: ../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py dev
         pass_filenames: false
-        files:
-          (?x)
-          ^tests/airflowctl_tests/.*\.py$
+        files: ^.*\.py$
+        require_serial: true
diff --git a/dev/breeze/doc/03_developer_tasks.rst b/dev/breeze/doc/03_developer_tasks.rst
index 0db3d77fed2..37dff9045ad 100644
--- a/dev/breeze/doc/03_developer_tasks.rst
+++ b/dev/breeze/doc/03_developer_tasks.rst
@@ -321,7 +321,7 @@ For example, this following command:
 
 .. code-block:: bash
 
-     prek mypy-airflow
+     prek mypy-airflow-core
 
 will run mypy check for currently staged files inside ``airflow/`` excluding providers.
 .. _breeze-dev:running-prek-in-breeze:
@@ -349,7 +349,7 @@ re-run latest prek hooks on your changes, but it can take a long time (few minut
 
 .. code-block:: bash
 
-     prek mypy-airflow --all-files
+     prek mypy-airflow-core --all-files
 
 The above will run mypy check for all files.
 
@@ -358,7 +358,7 @@ specifying (can be multiple times) ``--file`` flag.
 
 .. code-block:: bash
 
-     prek mypy-airflow --file airflow/utils/code_utils.py --file airflow/utils/timeout.py
+     prek mypy-airflow-core --file airflow/utils/code_utils.py --file airflow/utils/timeout.py
 
 The above will run mypy check for those to files (note: autocomplete should work for the file selection).
 
@@ -370,7 +370,7 @@ of commits you choose.
 
 .. code-block:: bash
 
-     prek mypy-airflow --last-commit
+     prek mypy-airflow-core --last-commit
 
 The above will run mypy check for all files in the last commit in your branch.
 
@@ -383,9 +383,17 @@ in ``--from-ref`` and ``--to-ref`` flags.
 
 .. note::
 
-    When you run static checks, some of the artifacts (mypy_cache) is stored in docker-compose volume
-    so that it can speed up static checks execution significantly. However, sometimes, the cache might
-    get broken, in which case you should run ``breeze down`` to clean up the cache.
+    When you run static checks, some of the artifacts (mypy_cache) is stored to speed up static
+    checks execution significantly:
+
+    - The providers ``mypy-providers`` hook runs via Breeze and stores its cache in the
+      ``mypy-cache-volume`` docker-compose volume.
+    - Each non-provider ``mypy-*`` hook uses its own dedicated virtualenv and mypy cache under
+      ``.build/mypy-venvs/<hook>/`` and ``.build/mypy-caches/<hook>/``; mypy itself is installed
+      from the workspace ``uv.lock`` via the ``mypy`` dependency group (``uv sync --group mypy``).
+
+    If the cache gets broken, run ``breeze down --cleanup-mypy-cache`` which wipes the docker
+    volume and every per-hook ``.build/mypy-venvs/`` and ``.build/mypy-caches/`` directory.
 
 .. note::
 
diff --git a/dev/breeze/doc/ci/04_selective_checks.md b/dev/breeze/doc/ci/04_selective_checks.md
index ab20ef96add..0290bd9ee53 100644
--- a/dev/breeze/doc/ci/04_selective_checks.md
+++ b/dev/breeze/doc/ci/04_selective_checks.md
@@ -68,9 +68,20 @@ We have the following Groups of files for CI that determine which tests are run:
 * `All Python files` - if none of the Python file changed, that indicates that we should not run unit tests
 * `All source files` - if none of the sources change, that indicates that we should probably not build
   an image and run any image-based static checks
-* `All Airflow Python files` - files that are checked by `mypy-airflow` static checks
+* `All Airflow Python files` - files that are checked by `mypy-airflow-core` static checks
 * `All Providers Python files` - files that are checked by `mypy-providers` static checks
 * `All Dev Python files` - files that are checked by `mypy-dev` static checks
+* `All Scripts Python files` - files that are checked by `mypy-scripts` static checks
+* `Task SDK files` - files that are checked by `mypy-task-sdk` static checks
+* `All Airflow CTL Python files` - files that are checked by `mypy-airflow-ctl` static checks
+* `All Devel Common Python files` - files that are checked by `mypy-devel-common` static checks
+* `All Helm Tests Python files` / `All Docker Tests Python files` /
+  `All Kubernetes Tests Python files` / `All Airflow E2E Tests Python files` /
+  `Airflow CTL Integration Test files` / `Task SDK Integration Test files` - files that are
+  checked by the respective `mypy-helm-tests` / `mypy-docker-tests` / `mypy-kubernetes-tests` /
+  `mypy-airflow-e2e-tests` / `mypy-airflow-ctl-tests` / `mypy-task-sdk-integration-tests` hooks
+* `shared/<dist>/**/*.py` - each `shared/<dist>` workspace member has its own `mypy-shared-<dist>`
+  hook (selective-checks enumerates them at runtime)
 * `All Provider Yaml files` - all provider yaml files
 
 We have a number of `TEST_TYPES` that can be selectively disabled/enabled based on the
@@ -140,8 +151,17 @@ when some files are not changed. Those are the rules implemented:
 * If "full tests" mode is detected, no more prek hooks are skipped - we run all of them
 * The following checks are skipped if those files are not changed:
   * if no `All Providers Python files` changed - `mypy-providers` check is skipped
-  * if no `All Airflow Python files` changed - `mypy-airflow` check is skipped
+  * if no `All Airflow Python files` changed - `mypy-airflow-core` check is skipped
   * if no `All Dev Python files` changed - `mypy-dev` check is skipped
+  * if no `All Scripts Python files` changed - `mypy-scripts` check is skipped
+  * if no `Task SDK files` changed - `mypy-task-sdk` check is skipped
+  * if no `All Airflow CTL Python files` changed - `mypy-airflow-ctl` check is skipped
+  * if no `All Devel Common Python files` changed - `mypy-devel-common` check is skipped
+  * if no files under the matching folder changed, the corresponding per-folder mypy hook
+    is skipped (`mypy-airflow-ctl-tests`, `mypy-helm-tests`, `mypy-airflow-e2e-tests`,
+    `mypy-task-sdk-integration-tests`, `mypy-docker-tests`, `mypy-kubernetes-tests`)
+  * for each `shared/<dist>` workspace member, `mypy-shared-<dist>` is skipped when no
+    file under `shared/<dist>/` changed (enumerated at runtime)
   * if no `UI files` changed - `ts-compile-format-lint-ui` check is skipped
   * if no `WWW files` changed - `ts-compile-format-lint-www` check is skipped
   * if no `All Python files` changed - `flynt` check is skipped
diff --git a/dev/breeze/src/airflow_breeze/commands/developer_commands.py b/dev/breeze/src/airflow_breeze/commands/developer_commands.py
index f10ed0ec0bd..afb22da6355 100644
--- a/dev/breeze/src/airflow_breeze/commands/developer_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/developer_commands.py
@@ -936,6 +936,11 @@ def down(preserve_volumes: bool, cleanup_mypy_cache: bool, cleanup_build_cache:
         if local_mypy_cache.exists():
             console_print(f"\n[info]Removing local mypy cache: {local_mypy_cache}\n")
             shutil.rmtree(local_mypy_cache)
+        for subdir in ("mypy-venvs", "mypy-caches"):
+            hook_dir = AIRFLOW_ROOT_PATH / ".build" / subdir
+            if hook_dir.exists():
+                console_print(f"\n[info]Removing dedicated mypy {subdir}: {hook_dir}\n")
+                shutil.rmtree(hook_dir)
     if cleanup_build_cache:
         command_to_execute = ["docker", "volume", "rm", "--force", "airflow-cache-volume"]
         run_command(command_to_execute)
diff --git a/dev/breeze/src/airflow_breeze/commands/release_candidate_command.py b/dev/breeze/src/airflow_breeze/commands/release_candidate_command.py
index 651aa803dd6..f3401b6074f 100644
--- a/dev/breeze/src/airflow_breeze/commands/release_candidate_command.py
+++ b/dev/breeze/src/airflow_breeze/commands/release_candidate_command.py
@@ -349,6 +349,9 @@ def create_tarball_release(
         console_print(f"[error]Unsupported tarball type: {tarball_type}")
         exit(1)
     source_date_epoch = get_source_date_epoch(AIRFLOW_ROOT_PATH)
+    if version is None:
+        console_print("[error]Version must be set before creating the tarball")
+        exit(1)
     # Create the tarball
     tarball_release(
         version=version,
diff --git a/dev/breeze/src/airflow_breeze/commands/testing_commands.py b/dev/breeze/src/airflow_breeze/commands/testing_commands.py
index 3ee2e605614..48b3a676782 100644
--- a/dev/breeze/src/airflow_breeze/commands/testing_commands.py
+++ b/dev/breeze/src/airflow_breeze/commands/testing_commands.py
@@ -1454,7 +1454,7 @@ def airflow_e2e_tests(
 
     console_print(f"[info]Running Airflow E2E tests with PROD image: {image_name}[/]")
     # If the image is used from docker hub, test container will pull that part of test.
-    skip_image_check = True if image_name.startswith("apache/airflow") else False
+    skip_image_check = bool(image_name and image_name.startswith("apache/airflow"))
     return_code, info = run_docker_compose_tests(
         image_name=image_name,
         python_version=python,
diff --git a/dev/breeze/src/airflow_breeze/utils/reproducible.py b/dev/breeze/src/airflow_breeze/utils/reproducible.py
index a48f6b048b8..218598dd660 100644
--- a/dev/breeze/src/airflow_breeze/utils/reproducible.py
+++ b/dev/breeze/src/airflow_breeze/utils/reproducible.py
@@ -123,7 +123,7 @@ def repack_deterministically(
         temp_file = f"{dest_archive}.temp~"
         with os.fdopen(os.open(temp_file, os.O_WRONLY | os.O_CREAT, 0o644), "wb") as out_file:
             with gzip.GzipFile(fileobj=out_file, mtime=0, mode="wb") as gzip_file:
-                with tarfile.open(fileobj=gzip_file, mode="w:") as tar_file:
+                with tarfile.open(fileobj=gzip_file, mode="w:") as tar_file:  # type: ignore[arg-type]
                     for entry in file_list:
                         entry_path = Path(entry)
                         if not entry_path.is_symlink():
diff --git a/dev/breeze/src/airflow_breeze/utils/selective_checks.py b/dev/breeze/src/airflow_breeze/utils/selective_checks.py
index aae6965dcff..4fd2647f438 100644
--- a/dev/breeze/src/airflow_breeze/utils/selective_checks.py
+++ b/dev/breeze/src/airflow_breeze/utils/selective_checks.py
@@ -135,6 +135,11 @@ class FileGroupForCi(Enum):
     ALL_PROVIDERS_DISTRIBUTION_CONFIG_FILES = auto()
     ALL_DEV_PYTHON_FILES = auto()
     ALL_DEVEL_COMMON_PYTHON_FILES = auto()
+    ALL_SCRIPTS_PYTHON_FILES = auto()
+    ALL_HELM_TESTS_PYTHON_FILES = auto()
+    ALL_AIRFLOW_E2E_TESTS_PYTHON_FILES = auto()
+    ALL_DOCKER_TESTS_PYTHON_FILES = auto()
+    ALL_KUBERNETES_TESTS_PYTHON_FILES = auto()
     ALL_PROVIDER_YAML_FILES = auto()
     TESTS_UTILS_FILES = auto()
     ASSET_FILES = auto()
@@ -293,6 +298,21 @@ CI_FILE_GROUP_MATCHES: HashableDict[FileGroupForCi] = HashableDict(
         FileGroupForCi.ALL_DEVEL_COMMON_PYTHON_FILES: [
             r"^devel-common/.*\.py$",
         ],
+        FileGroupForCi.ALL_SCRIPTS_PYTHON_FILES: [
+            r"^scripts/.*\.py$",
+        ],
+        FileGroupForCi.ALL_HELM_TESTS_PYTHON_FILES: [
+            r"^helm-tests/.*\.py$",
+        ],
+        FileGroupForCi.ALL_AIRFLOW_E2E_TESTS_PYTHON_FILES: [
+            r"^airflow-e2e-tests/.*\.py$",
+        ],
+        FileGroupForCi.ALL_DOCKER_TESTS_PYTHON_FILES: [
+            r"^docker-tests/.*\.py$",
+        ],
+        FileGroupForCi.ALL_KUBERNETES_TESTS_PYTHON_FILES: [
+            r"^kubernetes-tests/.*\.py$",
+        ],
         FileGroupForCi.ALL_SOURCE_FILES: [
             r"^.pre-commit-config.yaml$",
             r"^airflow-core/src/.*",
@@ -1474,12 +1494,42 @@ class SelectiveChecks:
                 prek_hooks_to_skip.add("mypy-airflow-core")
             if not self._matching_files(FileGroupForCi.ALL_DEV_PYTHON_FILES, CI_FILE_GROUP_MATCHES):
                 prek_hooks_to_skip.add("mypy-dev")
+            if not self._matching_files(FileGroupForCi.ALL_SCRIPTS_PYTHON_FILES, CI_FILE_GROUP_MATCHES):
+                prek_hooks_to_skip.add("mypy-scripts")
             if not self._matching_files(FileGroupForCi.TASK_SDK_FILES, CI_FILE_GROUP_MATCHES):
                 prek_hooks_to_skip.add("mypy-task-sdk")
             if not self._matching_files(FileGroupForCi.ALL_DEVEL_COMMON_PYTHON_FILES, CI_FILE_GROUP_MATCHES):
                 prek_hooks_to_skip.add("mypy-devel-common")
             if not self._matching_files(FileGroupForCi.ALL_AIRFLOW_CTL_PYTHON_FILES, CI_FILE_GROUP_MATCHES):
                 prek_hooks_to_skip.add("mypy-airflow-ctl")
+            if not self._matching_files(
+                FileGroupForCi.AIRFLOW_CTL_INTEGRATION_TEST_FILES, CI_FILE_GROUP_MATCHES
+            ):
+                prek_hooks_to_skip.add("mypy-airflow-ctl-tests")
+            if not self._matching_files(FileGroupForCi.ALL_HELM_TESTS_PYTHON_FILES, CI_FILE_GROUP_MATCHES):
+                prek_hooks_to_skip.add("mypy-helm-tests")
+            if not self._matching_files(
+                FileGroupForCi.ALL_AIRFLOW_E2E_TESTS_PYTHON_FILES, CI_FILE_GROUP_MATCHES
+            ):
+                prek_hooks_to_skip.add("mypy-airflow-e2e-tests")
+            if not self._matching_files(
+                FileGroupForCi.TASK_SDK_INTEGRATION_TEST_FILES, CI_FILE_GROUP_MATCHES
+            ):
+                prek_hooks_to_skip.add("mypy-task-sdk-integration-tests")
+            if not self._matching_files(FileGroupForCi.ALL_DOCKER_TESTS_PYTHON_FILES, CI_FILE_GROUP_MATCHES):
+                prek_hooks_to_skip.add("mypy-docker-tests")
+            if not self._matching_files(
+                FileGroupForCi.ALL_KUBERNETES_TESTS_PYTHON_FILES, CI_FILE_GROUP_MATCHES
+            ):
+                prek_hooks_to_skip.add("mypy-kubernetes-tests")
+            # One mypy-shared-<dist> hook per shared/<dist> workspace member; each is only
+            # kept when that distribution's own files changed.
+            for dist in sorted(
+                p.name for p in (AIRFLOW_ROOT_PATH / "shared").iterdir() if (p / "pyproject.toml").exists()
+            ):
+                pattern = re.compile(rf"^shared/{re.escape(dist)}/.*\.py$")
+                if not any(pattern.match(f) for f in self._files):
+                    prek_hooks_to_skip.add(f"mypy-shared-{dist}")
         return ",".join(sorted(prek_hooks_to_skip))
 
     @cached_property
diff --git a/dev/breeze/tests/test_selective_checks.py b/dev/breeze/tests/test_selective_checks.py
index 725e77ee399..f9443b06a90 100644
--- a/dev/breeze/tests/test_selective_checks.py
+++ b/dev/breeze/tests/test_selective_checks.py
@@ -101,54 +101,108 @@ LIST_OF_ALL_PROVIDER_TESTS_AS_JSON = json.dumps(
 
 ALL_SKIPPED_COMMITS_ON_NO_CI_IMAGE = (
     "check-provider-yaml-valid,flynt,identity,lint-helm-chart,"
-    "mypy-airflow-core,mypy-airflow-ctl,mypy-dev,mypy-devel-common,mypy-task-sdk,"
+    "mypy-airflow-core,mypy-airflow-ctl,mypy-airflow-ctl-tests,mypy-airflow-e2e-tests,"
+    "mypy-dev,mypy-devel-common,mypy-docker-tests,mypy-helm-tests,mypy-kubernetes-tests,"
+    "mypy-scripts,"
+    "mypy-shared-configuration,mypy-shared-dagnode,mypy-shared-listeners,mypy-shared-logging,"
+    "mypy-shared-module_loading,mypy-shared-observability,mypy-shared-plugins_manager,"
+    "mypy-shared-providers_discovery,mypy-shared-secrets_backend,mypy-shared-secrets_masker,"
+    "mypy-shared-serialization,mypy-shared-template_rendering,mypy-shared-timezones,mypy-task-sdk,mypy-task-sdk-integration-tests,"
     "ts-compile-lint-simple-auth-manager-ui,ts-compile-lint-ui,update-uv-lock"
 )
 
 ALL_SKIPPED_COMMITS_BY_DEFAULT_ON_ALL_TESTS_NEEDED = "identity,update-uv-lock"
 
 ALL_SKIPPED_COMMITS_IF_NO_UI = (
-    "identity,mypy-airflow-core,mypy-airflow-ctl,mypy-dev,mypy-devel-common,mypy-task-sdk,"
+    "identity,mypy-airflow-core,mypy-airflow-ctl,mypy-airflow-ctl-tests,mypy-airflow-e2e-tests,"
+    "mypy-dev,mypy-devel-common,mypy-docker-tests,mypy-helm-tests,mypy-kubernetes-tests,"
+    "mypy-scripts,"
+    "mypy-shared-configuration,mypy-shared-dagnode,mypy-shared-listeners,mypy-shared-logging,"
+    "mypy-shared-module_loading,mypy-shared-observability,mypy-shared-plugins_manager,"
+    "mypy-shared-providers_discovery,mypy-shared-secrets_backend,mypy-shared-secrets_masker,"
+    "mypy-shared-serialization,mypy-shared-template_rendering,mypy-shared-timezones,mypy-task-sdk,mypy-task-sdk-integration-tests,"
     "ts-compile-lint-simple-auth-manager-ui,ts-compile-lint-ui,update-uv-lock"
 )
 ALL_SKIPPED_COMMITS_IF_NO_HELM_TESTS = (
     "identity,lint-helm-chart,"
-    "mypy-airflow-core,mypy-airflow-ctl,mypy-dev,mypy-devel-common,mypy-task-sdk,update-uv-lock"
+    "mypy-airflow-core,mypy-airflow-ctl,mypy-airflow-ctl-tests,mypy-airflow-e2e-tests,"
+    "mypy-dev,mypy-devel-common,mypy-docker-tests,mypy-helm-tests,mypy-kubernetes-tests,"
+    "mypy-scripts,"
+    "mypy-shared-configuration,mypy-shared-dagnode,mypy-shared-listeners,mypy-shared-logging,"
+    "mypy-shared-module_loading,mypy-shared-observability,mypy-shared-plugins_manager,"
+    "mypy-shared-providers_discovery,mypy-shared-secrets_backend,mypy-shared-secrets_masker,"
+    "mypy-shared-serialization,mypy-shared-template_rendering,mypy-shared-timezones,mypy-task-sdk,mypy-task-sdk-integration-tests,update-uv-lock"
 )
 
 ALL_SKIPPED_COMMITS_IF_NO_UI_AND_HELM_TESTS = (
     "identity,lint-helm-chart,"
-    "mypy-airflow-core,mypy-airflow-ctl,mypy-dev,mypy-devel-common,mypy-task-sdk,"
+    "mypy-airflow-core,mypy-airflow-ctl,mypy-airflow-ctl-tests,mypy-airflow-e2e-tests,"
+    "mypy-dev,mypy-devel-common,mypy-docker-tests,mypy-helm-tests,mypy-kubernetes-tests,"
+    "mypy-scripts,"
+    "mypy-shared-configuration,mypy-shared-dagnode,mypy-shared-listeners,mypy-shared-logging,"
+    "mypy-shared-module_loading,mypy-shared-observability,mypy-shared-plugins_manager,"
+    "mypy-shared-providers_discovery,mypy-shared-secrets_backend,mypy-shared-secrets_masker,"
+    "mypy-shared-serialization,mypy-shared-template_rendering,mypy-shared-timezones,mypy-task-sdk,mypy-task-sdk-integration-tests,"
     "ts-compile-lint-simple-auth-manager-ui,ts-compile-lint-ui,update-uv-lock"
 )
 
 ALL_SKIPPED_COMMITS_IF_NO_PROVIDERS_AND_UI = (
     "check-provider-yaml-valid,identity,"
-    "mypy-airflow-core,mypy-airflow-ctl,mypy-dev,mypy-devel-common,mypy-task-sdk,"
+    "mypy-airflow-core,mypy-airflow-ctl,mypy-airflow-ctl-tests,mypy-airflow-e2e-tests,"
+    "mypy-dev,mypy-devel-common,mypy-docker-tests,mypy-helm-tests,mypy-kubernetes-tests,"
+    "mypy-scripts,"
+    "mypy-shared-configuration,mypy-shared-dagnode,mypy-shared-listeners,mypy-shared-logging,"
+    "mypy-shared-module_loading,mypy-shared-observability,mypy-shared-plugins_manager,"
+    "mypy-shared-providers_discovery,mypy-shared-secrets_backend,mypy-shared-secrets_masker,"
+    "mypy-shared-serialization,mypy-shared-template_rendering,mypy-shared-timezones,mypy-task-sdk,mypy-task-sdk-integration-tests,"
     "ts-compile-lint-simple-auth-manager-ui,ts-compile-lint-ui,update-uv-lock"
 )
 
 ALL_SKIPPED_COMMITS_IF_NO_PROVIDERS = (
     "check-provider-yaml-valid,identity,lint-helm-chart,"
-    "mypy-airflow-core,mypy-airflow-ctl,mypy-dev,mypy-devel-common,mypy-task-sdk,"
+    "mypy-airflow-core,mypy-airflow-ctl,mypy-airflow-ctl-tests,mypy-airflow-e2e-tests,"
+    "mypy-dev,mypy-devel-common,mypy-docker-tests,mypy-helm-tests,mypy-kubernetes-tests,"
+    "mypy-scripts,"
+    "mypy-shared-configuration,mypy-shared-dagnode,mypy-shared-listeners,mypy-shared-logging,"
+    "mypy-shared-module_loading,mypy-shared-observability,mypy-shared-plugins_manager,"
+    "mypy-shared-providers_discovery,mypy-shared-secrets_backend,mypy-shared-secrets_masker,"
+    "mypy-shared-serialization,mypy-shared-template_rendering,mypy-shared-timezones,mypy-task-sdk,mypy-task-sdk-integration-tests,"
     "ts-compile-lint-simple-auth-manager-ui,ts-compile-lint-ui,update-uv-lock"
 )
 
 
 ALL_SKIPPED_COMMITS_IF_NO_PROVIDERS_UI_AND_HELM_TESTS = (
     "check-provider-yaml-valid,identity,lint-helm-chart,"
-    "mypy-airflow-core,mypy-airflow-ctl,mypy-dev,mypy-devel-common,mypy-task-sdk,"
+    "mypy-airflow-core,mypy-airflow-ctl,mypy-airflow-ctl-tests,mypy-airflow-e2e-tests,"
+    "mypy-dev,mypy-devel-common,mypy-docker-tests,mypy-helm-tests,mypy-kubernetes-tests,"
+    "mypy-scripts,"
+    "mypy-shared-configuration,mypy-shared-dagnode,mypy-shared-listeners,mypy-shared-logging,"
+    "mypy-shared-module_loading,mypy-shared-observability,mypy-shared-plugins_manager,"
+    "mypy-shared-providers_discovery,mypy-shared-secrets_backend,mypy-shared-secrets_masker,"
+    "mypy-shared-serialization,mypy-shared-template_rendering,mypy-shared-timezones,mypy-task-sdk,mypy-task-sdk-integration-tests,"
     "ts-compile-lint-simple-auth-manager-ui,ts-compile-lint-ui,update-uv-lock"
 )
 
 ALL_SKIPPED_COMMITS_IF_NO_CODE_PROVIDERS_AND_HELM_TESTS = (
     "check-provider-yaml-valid,flynt,identity,lint-helm-chart,"
-    "mypy-airflow-core,mypy-airflow-ctl,mypy-dev,mypy-devel-common,mypy-task-sdk,update-uv-lock"
+    "mypy-airflow-core,mypy-airflow-ctl,mypy-airflow-ctl-tests,mypy-airflow-e2e-tests,"
+    "mypy-dev,mypy-devel-common,mypy-docker-tests,mypy-helm-tests,mypy-kubernetes-tests,"
+    "mypy-scripts,"
+    "mypy-shared-configuration,mypy-shared-dagnode,mypy-shared-listeners,mypy-shared-logging,"
+    "mypy-shared-module_loading,mypy-shared-observability,mypy-shared-plugins_manager,"
+    "mypy-shared-providers_discovery,mypy-shared-secrets_backend,mypy-shared-secrets_masker,"
+    "mypy-shared-serialization,mypy-shared-template_rendering,mypy-shared-timezones,mypy-task-sdk,mypy-task-sdk-integration-tests,update-uv-lock"
 )
 
 ALL_SKIPPED_COMMITS_IF_NOT_IMPORTANT_FILES_CHANGED = (
     "check-provider-yaml-valid,flynt,identity,lint-helm-chart,"
-    "mypy-airflow-core,mypy-airflow-ctl,mypy-dev,mypy-devel-common,mypy-task-sdk,"
+    "mypy-airflow-core,mypy-airflow-ctl,mypy-airflow-ctl-tests,mypy-airflow-e2e-tests,"
+    "mypy-dev,mypy-devel-common,mypy-docker-tests,mypy-helm-tests,mypy-kubernetes-tests,"
+    "mypy-scripts,"
+    "mypy-shared-configuration,mypy-shared-dagnode,mypy-shared-listeners,mypy-shared-logging,"
+    "mypy-shared-module_loading,mypy-shared-observability,mypy-shared-plugins_manager,"
+    "mypy-shared-providers_discovery,mypy-shared-secrets_backend,mypy-shared-secrets_masker,"
+    "mypy-shared-serialization,mypy-shared-template_rendering,mypy-shared-timezones,mypy-task-sdk,mypy-task-sdk-integration-tests,"
     "ts-compile-lint-simple-auth-manager-ui,ts-compile-lint-ui,update-uv-lock"
 )
 
@@ -345,7 +399,13 @@ def assert_outputs_are_printed(expected_outputs: dict[str, str], stderr: str):
                     "docs-build": "true",
                     "skip-prek-hooks": (
                         "check-provider-yaml-valid,identity,lint-helm-chart,"
-                        "mypy-airflow-ctl,mypy-dev,mypy-devel-common,mypy-task-sdk,"
+                        "mypy-airflow-ctl,mypy-airflow-ctl-tests,mypy-airflow-e2e-tests,"
+                        "mypy-dev,mypy-devel-common,mypy-docker-tests,mypy-helm-tests,mypy-kubernetes-tests,"
+                        "mypy-scripts,"
+                        "mypy-shared-configuration,mypy-shared-dagnode,mypy-shared-listeners,mypy-shared-logging,"
+                        "mypy-shared-module_loading,mypy-shared-observability,mypy-shared-plugins_manager,"
+                        "mypy-shared-providers_discovery,mypy-shared-secrets_backend,mypy-shared-secrets_masker,"
+                        "mypy-shared-serialization,mypy-shared-template_rendering,mypy-shared-timezones,mypy-task-sdk,mypy-task-sdk-integration-tests,"
                         "ts-compile-lint-simple-auth-manager-ui,ts-compile-lint-ui,update-uv-lock"
                     ),
                     "upgrade-to-newer-dependencies": "false",
@@ -612,7 +672,13 @@ def assert_outputs_are_printed(expected_outputs: dict[str, str], stderr: str):
                     "full-tests-needed": "false",
                     "skip-prek-hooks": (
                         "check-provider-yaml-valid,identity,lint-helm-chart,"
-                        "mypy-airflow-core,mypy-airflow-ctl,mypy-dev,mypy-devel-common,"
+                        "mypy-airflow-core,mypy-airflow-ctl,mypy-airflow-ctl-tests,mypy-airflow-e2e-tests,"
+                        "mypy-dev,mypy-devel-common,mypy-docker-tests,mypy-helm-tests,mypy-kubernetes-tests,"
+                        "mypy-scripts,"
+                        "mypy-shared-configuration,mypy-shared-dagnode,mypy-shared-listeners,mypy-shared-logging,"
+                        "mypy-shared-module_loading,mypy-shared-observability,mypy-shared-plugins_manager,"
+                        "mypy-shared-providers_discovery,mypy-shared-secrets_backend,mypy-shared-secrets_masker,"
+                        "mypy-shared-serialization,mypy-shared-template_rendering,mypy-shared-timezones,mypy-task-sdk-integration-tests,"
                         "ts-compile-lint-simple-auth-manager-ui,ts-compile-lint-ui,update-uv-lock"
                     ),
                     "skip-providers-tests": "false",
@@ -642,7 +708,17 @@ def assert_outputs_are_printed(expected_outputs: dict[str, str], stderr: str):
                     "run-task-sdk-integration-tests": "true",
                     "docs-build": "false",
                     "full-tests-needed": "false",
-                    "skip-prek-hooks": ALL_SKIPPED_COMMITS_IF_NO_PROVIDERS_UI_AND_HELM_TESTS,
+                    "skip-prek-hooks": (
+                        "check-provider-yaml-valid,identity,lint-helm-chart,"
+                        "mypy-airflow-core,mypy-airflow-ctl,mypy-airflow-ctl-tests,mypy-airflow-e2e-tests,"
+                        "mypy-dev,mypy-devel-common,mypy-docker-tests,mypy-helm-tests,mypy-kubernetes-tests,"
+                        "mypy-scripts,"
+                        "mypy-shared-configuration,mypy-shared-dagnode,mypy-shared-listeners,mypy-shared-logging,"
+                        "mypy-shared-module_loading,mypy-shared-observability,mypy-shared-plugins_manager,"
+                        "mypy-shared-providers_discovery,mypy-shared-secrets_backend,mypy-shared-secrets_masker,"
+                        "mypy-shared-serialization,mypy-shared-template_rendering,mypy-shared-timezones,mypy-task-sdk,"
+                        "ts-compile-lint-simple-auth-manager-ui,ts-compile-lint-ui,update-uv-lock"
+                    ),
                     "skip-providers-tests": "true",
                     "upgrade-to-newer-dependencies": "false",
                     "run-mypy-providers": "false",
@@ -671,7 +747,13 @@ def assert_outputs_are_printed(expected_outputs: dict[str, str], stderr: str):
                     "full-tests-needed": "false",
                     "skip-prek-hooks": (
                         "check-provider-yaml-valid,identity,lint-helm-chart,"
-                        "mypy-airflow-core,mypy-dev,mypy-devel-common,mypy-task-sdk,"
+                        "mypy-airflow-core,mypy-airflow-ctl-tests,mypy-airflow-e2e-tests,"
+                        "mypy-dev,mypy-devel-common,mypy-docker-tests,mypy-helm-tests,mypy-kubernetes-tests,"
+                        "mypy-scripts,"
+                        "mypy-shared-configuration,mypy-shared-dagnode,mypy-shared-listeners,mypy-shared-logging,"
+                        "mypy-shared-module_loading,mypy-shared-observability,mypy-shared-plugins_manager,"
+                        "mypy-shared-providers_discovery,mypy-shared-secrets_backend,mypy-shared-secrets_masker,"
+                        "mypy-shared-serialization,mypy-shared-template_rendering,mypy-shared-timezones,mypy-task-sdk,mypy-task-sdk-integration-tests,"
                         "ts-compile-lint-simple-auth-manager-ui,ts-compile-lint-ui,update-uv-lock"
                     ),
                     "skip-providers-tests": "true",
@@ -699,7 +781,17 @@ def assert_outputs_are_printed(expected_outputs: dict[str, str], stderr: str):
                     "run-airflow-ctl-integration-tests": "true",
                     "docs-build": "false",
                     "full-tests-needed": "false",
-                    "skip-prek-hooks": ALL_SKIPPED_COMMITS_IF_NO_PROVIDERS_UI_AND_HELM_TESTS,
+                    "skip-prek-hooks": (
+                        "check-provider-yaml-valid,identity,lint-helm-chart,"
+                        "mypy-airflow-core,mypy-airflow-ctl,mypy-airflow-e2e-tests,"
+                        "mypy-dev,mypy-devel-common,mypy-docker-tests,mypy-helm-tests,mypy-kubernetes-tests,"
+                        "mypy-scripts,"
+                        "mypy-shared-configuration,mypy-shared-dagnode,mypy-shared-listeners,mypy-shared-logging,"
+                        "mypy-shared-module_loading,mypy-shared-observability,mypy-shared-plugins_manager,"
+                        "mypy-shared-providers_discovery,mypy-shared-secrets_backend,mypy-shared-secrets_masker,"
+                        "mypy-shared-serialization,mypy-shared-template_rendering,mypy-shared-timezones,mypy-task-sdk,mypy-task-sdk-integration-tests,"
+                        "ts-compile-lint-simple-auth-manager-ui,ts-compile-lint-ui,update-uv-lock"
+                    ),
                     "skip-providers-tests": "true",
                     "upgrade-to-newer-dependencies": "false",
                     "run-mypy-providers": "false",
@@ -1032,7 +1124,13 @@ def assert_outputs_are_printed(expected_outputs: dict[str, str], stderr: str):
                 "run-kubernetes-tests": "false",
                 "skip-prek-hooks": (
                     "identity,lint-helm-chart,"
-                    "mypy-airflow-ctl,mypy-dev,mypy-devel-common,mypy-task-sdk,"
+                    "mypy-airflow-ctl,mypy-airflow-ctl-tests,mypy-airflow-e2e-tests,"
+                    "mypy-dev,mypy-devel-common,mypy-docker-tests,mypy-helm-tests,mypy-kubernetes-tests,"
+                    "mypy-scripts,"
+                    "mypy-shared-configuration,mypy-shared-dagnode,mypy-shared-listeners,mypy-shared-logging,"
+                    "mypy-shared-module_loading,mypy-shared-observability,mypy-shared-plugins_manager,"
+                    "mypy-shared-providers_discovery,mypy-shared-secrets_backend,mypy-shared-secrets_masker,"
+                    "mypy-shared-serialization,mypy-shared-template_rendering,mypy-shared-timezones,mypy-task-sdk,mypy-task-sdk-integration-tests,"
                     "ts-compile-lint-simple-auth-manager-ui,ts-compile-lint-ui,update-uv-lock"
                 ),
                 "upgrade-to-newer-dependencies": "false",
@@ -1190,7 +1288,13 @@ def assert_outputs_are_printed(expected_outputs: dict[str, str], stderr: str):
                 "docs-build": "true",
                 "skip-prek-hooks": (
                     "check-provider-yaml-valid,flynt,identity,"
-                    "mypy-airflow-core,mypy-airflow-ctl,mypy-dev,mypy-devel-common,mypy-task-sdk,"
+                    "mypy-airflow-core,mypy-airflow-ctl,mypy-airflow-ctl-tests,mypy-airflow-e2e-tests,"
+                    "mypy-dev,mypy-devel-common,mypy-docker-tests,mypy-helm-tests,mypy-kubernetes-tests,"
+                    "mypy-scripts,"
+                    "mypy-shared-configuration,mypy-shared-dagnode,mypy-shared-listeners,mypy-shared-logging,"
+                    "mypy-shared-module_loading,mypy-shared-observability,mypy-shared-plugins_manager,"
+                    "mypy-shared-providers_discovery,mypy-shared-secrets_backend,mypy-shared-secrets_masker,"
+                    "mypy-shared-serialization,mypy-shared-template_rendering,mypy-shared-timezones,mypy-task-sdk,mypy-task-sdk-integration-tests,"
                     "ts-compile-lint-simple-auth-manager-ui,ts-compile-lint-ui,update-uv-lock"
                 ),
                 "upgrade-to-newer-dependencies": "false",
@@ -1307,6 +1411,27 @@ def assert_outputs_are_printed(expected_outputs: dict[str, str], stderr: str):
                 id="Shared library python changes trigger unit tests",
             )
         ),
+        (
+            pytest.param(
+                ("shared/logging/src/airflow_shared/logging/remote.py",),
+                {
+                    "skip-prek-hooks": (
+                        "check-provider-yaml-valid,identity,lint-helm-chart,"
+                        "mypy-airflow-core,mypy-airflow-ctl,mypy-airflow-ctl-tests,"
+                        "mypy-airflow-e2e-tests,mypy-dev,mypy-devel-common,mypy-docker-tests,"
+                        "mypy-helm-tests,mypy-kubernetes-tests,mypy-scripts,"
+                        "mypy-shared-configuration,mypy-shared-dagnode,mypy-shared-listeners,"
+                        "mypy-shared-module_loading,mypy-shared-observability,"
+                        "mypy-shared-plugins_manager,mypy-shared-providers_discovery,"
+                        "mypy-shared-secrets_backend,mypy-shared-secrets_masker,"
+                        "mypy-shared-serialization,mypy-shared-template_rendering,"
+                        "mypy-shared-timezones,mypy-task-sdk,mypy-task-sdk-integration-tests,"
+                        "ts-compile-lint-simple-auth-manager-ui,ts-compile-lint-ui,update-uv-lock"
+                    ),
+                },
+                id=("Shared logging change keeps only mypy-shared-logging among the mypy-shared-* hooks"),
+            )
+        ),
     ],
 )
 def test_expected_output_pull_request_main(
@@ -2030,7 +2155,13 @@ def test_expected_output_push(
                 "docs-list-as-string": ALL_DOCS_SELECTED_FOR_BUILD,
                 "skip-prek-hooks": (
                     "check-provider-yaml-valid,identity,lint-helm-chart,"
-                    "mypy-airflow-ctl,mypy-dev,mypy-devel-common,mypy-task-sdk,"
+                    "mypy-airflow-ctl,mypy-airflow-ctl-tests,mypy-airflow-e2e-tests,"
+                    "mypy-dev,mypy-devel-common,mypy-docker-tests,mypy-helm-tests,mypy-kubernetes-tests,"
+                    "mypy-scripts,"
+                    "mypy-shared-configuration,mypy-shared-dagnode,mypy-shared-listeners,mypy-shared-logging,"
+                    "mypy-shared-module_loading,mypy-shared-observability,mypy-shared-plugins_manager,"
+                    "mypy-shared-providers_discovery,mypy-shared-secrets_backend,mypy-shared-secrets_masker,"
+                    "mypy-shared-serialization,mypy-shared-template_rendering,mypy-shared-timezones,mypy-task-sdk,mypy-task-sdk-integration-tests,"
                     "ts-compile-lint-simple-auth-manager-ui,ts-compile-lint-ui,update-uv-lock"
                 ),
                 "upgrade-to-newer-dependencies": "false",
@@ -2065,7 +2196,13 @@ def test_expected_output_push(
                 "microsoft.mssql mysql openlineage oracle postgres "
                 "presto salesforce samba sftp ssh standard trino",
                 "skip-prek-hooks": (
-                    "identity,mypy-airflow-ctl,mypy-dev,mypy-devel-common,mypy-task-sdk,"
+                    "identity,mypy-airflow-ctl,mypy-airflow-ctl-tests,mypy-airflow-e2e-tests,"
+                    "mypy-dev,mypy-devel-common,mypy-docker-tests,mypy-helm-tests,mypy-kubernetes-tests,"
+                    "mypy-scripts,"
+                    "mypy-shared-configuration,mypy-shared-dagnode,mypy-shared-listeners,mypy-shared-logging,"
+                    "mypy-shared-module_loading,mypy-shared-observability,mypy-shared-plugins_manager,"
+                    "mypy-shared-providers_discovery,mypy-shared-secrets_backend,mypy-shared-secrets_masker,"
+                    "mypy-shared-serialization,mypy-shared-template_rendering,mypy-shared-timezones,mypy-task-sdk,mypy-task-sdk-integration-tests,"
                     "ts-compile-lint-simple-auth-manager-ui,ts-compile-lint-ui,update-uv-lock"
                 ),
                 "run-kubernetes-tests": "true",
@@ -2105,7 +2242,13 @@ def test_expected_output_push(
                 "docs-list-as-string": "apache-airflow",
                 "skip-prek-hooks": (
                     "check-provider-yaml-valid,identity,lint-helm-chart,"
-                    "mypy-airflow-ctl,mypy-dev,mypy-devel-common,mypy-task-sdk,"
+                    "mypy-airflow-ctl,mypy-airflow-ctl-tests,mypy-airflow-e2e-tests,"
+                    "mypy-dev,mypy-devel-common,mypy-docker-tests,mypy-helm-tests,mypy-kubernetes-tests,"
+                    "mypy-scripts,"
+                    "mypy-shared-configuration,mypy-shared-dagnode,mypy-shared-listeners,mypy-shared-logging,"
+                    "mypy-shared-module_loading,mypy-shared-observability,mypy-shared-plugins_manager,"
+                    "mypy-shared-providers_discovery,mypy-shared-secrets_backend,mypy-shared-secrets_masker,"
+                    "mypy-shared-serialization,mypy-shared-template_rendering,mypy-shared-timezones,mypy-task-sdk,mypy-task-sdk-integration-tests,"
                     "ts-compile-lint-simple-auth-manager-ui,ts-compile-lint-ui,update-uv-lock"
                 ),
                 "run-kubernetes-tests": "false",
diff --git a/dev/pyproject.toml b/dev/pyproject.toml
index 82a144f2806..7cb9ae40faf 100644
--- a/dev/pyproject.toml
+++ b/dev/pyproject.toml
@@ -66,3 +66,73 @@ exclude = ["*"]
 
 [tool.hatch.build.targets.wheel]
 bypass-selection = true
+
+[tool.mypy]
+ignore_missing_imports = true
+no_implicit_optional = true
+warn_redundant_casts = true
+warn_unused_ignores = false
+plugins = [
+    "airflow_mypy/plugin/decorators.py",
+    "airflow_mypy/plugin/outputs.py",
+]
+pretty = true
+show_error_codes = true
+disable_error_code = [
+    "annotation-unchecked",
+]
+namespace_packages = true
+explicit_package_bases = true
+exclude = [
+    ".*/node_modules/.*",
+    # Exclude hidden files and directories
+    ".*/\\..*"
+]
+# Workspace packages (airflow_breeze, airflow_perf, airflow_mypy, etc.) are installed
+# editable into the hook's virtualenv by `uv sync`, so mypy resolves them via
+# site-packages — no mypy_path entries needed.
+
+[[tool.mypy.overrides]]
+module="airflow.config_templates.default_webserver_config"
+disable_error_code = [
+    "var-annotated",
+]
+
+[[tool.mypy.overrides]]
+module="airflow.migrations.*"
+ignore_errors = true
+
+[[tool.mypy.overrides]]
+module="airflow.*._vendor.*"
+ignore_errors = true
+
+[[tool.mypy.overrides]]
+module= [
+    "google.cloud.*",
+    "azure.*",
+]
+no_implicit_optional = false
+
+[[tool.mypy.overrides]]
+module = "google.api_core.gapic_v1"
+ignore_errors = true
+
+[[tool.mypy.overrides]]
+module=[
+    "referencing.*",
+    # Beam has some old type annotations, and they introduced an error recently with bad signature of
+    # a function. This is captured in https://github.com/apache/beam/issues/29927
+    # and we should remove this exclusion when it is fixed.
+    "apache_beam.*"
+]
+ignore_errors = true
+
+# airflowctl autogenered datamodels
+[[tool.mypy.overrides]]
+module="airflowctl.api.datamodels.*"
+ignore_errors = true
+
+[dependency-groups]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
diff --git a/devel-common/pyproject.toml b/devel-common/pyproject.toml
index a1e37d3c54a..09ee3b00866 100644
--- a/devel-common/pyproject.toml
+++ b/devel-common/pyproject.toml
@@ -171,6 +171,10 @@ docs = [
 docs-gen = [
     "apache-airflow-devel-common[docs-gen]",
 ]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
+
 
 [project.scripts]
 build-docs = "docs.build_docs:build_docs"
diff --git a/airflow-ctl-tests/.pre-commit-config.yaml b/docker-tests/.pre-commit-config.yaml
similarity index 77%
copy from airflow-ctl-tests/.pre-commit-config.yaml
copy to docker-tests/.pre-commit-config.yaml
index f6213b0f9a8..27e73ecc067 100644
--- a/airflow-ctl-tests/.pre-commit-config.yaml
+++ b/docker-tests/.pre-commit-config.yaml
@@ -16,17 +16,16 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
 repos:
   - repo: local
     hooks:
-      - id: check-airflowctl-command-coverage
-        name: Check airflowctl CLI command test coverage
-        entry: ../scripts/ci/prek/check_airflowctl_command_coverage.py
+      - id: mypy-docker-tests
+        name: Run mypy for docker-tests
         language: python
+        entry: ../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py docker-tests
         pass_filenames: false
-        files:
-          (?x)
-          ^tests/airflowctl_tests/.*\.py$
+        files: ^.*\.py$
+        require_serial: true
diff --git a/docker-tests/pyproject.toml b/docker-tests/pyproject.toml
index 04d3a062bfd..ca471dd20da 100644
--- a/docker-tests/pyproject.toml
+++ b/docker-tests/pyproject.toml
@@ -74,3 +74,8 @@ exclude = ["*"]
 
 [tool.hatch.build.targets.wheel]
 bypass-selection = true
+
+[dependency-groups]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
diff --git a/docker-tests/tests/docker_tests/test_docker_compose_quick_start.py b/docker-tests/tests/docker_tests/test_docker_compose_quick_start.py
index bfefd46fc4c..3cd93078431 100644
--- a/docker-tests/tests/docker_tests/test_docker_compose_quick_start.py
+++ b/docker-tests/tests/docker_tests/test_docker_compose_quick_start.py
@@ -169,7 +169,7 @@ def print_diagnostics(compose: DockerClient, compose_version: str, docker_versio
     console.print(" Docker Compose Version ".center(72, "="))
     console.print(compose_version)
     console.print(" Compose Config ".center(72, "="))
-    console.print(json.dumps(compose.config(return_json=True), indent=4))
+    console.print(json.dumps(compose.config(return_json=True), indent=4))  # type: ignore[operator]
     for service in compose.ps(all=True):
         console.print(f"Service: {service.name} ".center(72, "="))
         console.print(f" Service State {service.name}".center(50, "."))
diff --git a/docker-tests/tests/docker_tests/test_prod_image.py b/docker-tests/tests/docker_tests/test_prod_image.py
index 808013538fe..43b5f3cea96 100644
--- a/docker-tests/tests/docker_tests/test_prod_image.py
+++ b/docker-tests/tests/docker_tests/test_prod_image.py
@@ -39,7 +39,7 @@ AIRFLOW_CORE_PYPROJECT_TOML = AIRFLOW_ROOT_PATH / "airflow-core" / "pyproject.to
 try:
     from tomllib import loads as load_tomllib
 except ImportError:
-    from tomli import loads as load_tomllib
+    from tomli import loads as load_tomllib  # type: ignore[no-redef]
 
 airflow_core_pyproject_toml = load_tomllib(AIRFLOW_CORE_PYPROJECT_TOML.read_text())
 
diff --git a/go-sdk/.pre-commit-config.yaml b/go-sdk/.pre-commit-config.yaml
index 74278d28bee..72dd3a6cbeb 100644
--- a/go-sdk/.pre-commit-config.yaml
+++ b/go-sdk/.pre-commit-config.yaml
@@ -16,7 +16,7 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.3.2'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
   node: 22.19.0
diff --git a/airflow-ctl-tests/.pre-commit-config.yaml b/helm-tests/.pre-commit-config.yaml
similarity index 77%
copy from airflow-ctl-tests/.pre-commit-config.yaml
copy to helm-tests/.pre-commit-config.yaml
index f6213b0f9a8..b654d6994ce 100644
--- a/airflow-ctl-tests/.pre-commit-config.yaml
+++ b/helm-tests/.pre-commit-config.yaml
@@ -16,17 +16,16 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
 repos:
   - repo: local
     hooks:
-      - id: check-airflowctl-command-coverage
-        name: Check airflowctl CLI command test coverage
-        entry: ../scripts/ci/prek/check_airflowctl_command_coverage.py
+      - id: mypy-helm-tests
+        name: Run mypy for helm-tests
         language: python
+        entry: ../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py helm-tests
         pass_filenames: false
-        files:
-          (?x)
-          ^tests/airflowctl_tests/.*\.py$
+        files: ^.*\.py$
+        require_serial: true
diff --git a/helm-tests/pyproject.toml b/helm-tests/pyproject.toml
index f061aa5950b..e53dafa6c98 100644
--- a/helm-tests/pyproject.toml
+++ b/helm-tests/pyproject.toml
@@ -74,3 +74,8 @@ exclude = ["*"]
 
 [tool.hatch.build.targets.wheel]
 bypass-selection = true
+
+[dependency-groups]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
diff --git a/airflow-ctl-tests/.pre-commit-config.yaml b/kubernetes-tests/.pre-commit-config.yaml
similarity index 77%
copy from airflow-ctl-tests/.pre-commit-config.yaml
copy to kubernetes-tests/.pre-commit-config.yaml
index f6213b0f9a8..4bfb8077b9c 100644
--- a/airflow-ctl-tests/.pre-commit-config.yaml
+++ b/kubernetes-tests/.pre-commit-config.yaml
@@ -16,17 +16,16 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
 repos:
   - repo: local
     hooks:
-      - id: check-airflowctl-command-coverage
-        name: Check airflowctl CLI command test coverage
-        entry: ../scripts/ci/prek/check_airflowctl_command_coverage.py
+      - id: mypy-kubernetes-tests
+        name: Run mypy for kubernetes-tests
         language: python
+        entry: ../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py kubernetes-tests
         pass_filenames: false
-        files:
-          (?x)
-          ^tests/airflowctl_tests/.*\.py$
+        files: ^.*\.py$
+        require_serial: true
diff --git a/kubernetes-tests/pyproject.toml b/kubernetes-tests/pyproject.toml
index 9afb4e6a2bc..4930f340df5 100644
--- a/kubernetes-tests/pyproject.toml
+++ b/kubernetes-tests/pyproject.toml
@@ -81,3 +81,8 @@ exclude = ["*"]
 
 [tool.hatch.build.targets.wheel]
 bypass-selection = true
+
+[dependency-groups]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
diff --git a/kubernetes-tests/tests/kubernetes_tests/test_base.py b/kubernetes-tests/tests/kubernetes_tests/test_base.py
index 326c1191d9c..bffc6574153 100644
--- a/kubernetes-tests/tests/kubernetes_tests/test_base.py
+++ b/kubernetes-tests/tests/kubernetes_tests/test_base.py
@@ -130,8 +130,8 @@ class BaseK8STest:
     @staticmethod
     def _num_pods_in_namespace(namespace: str):
         air_pod = check_output(["kubectl", "get", "pods", "-n", namespace]).decode()
-        air_pod = air_pod.splitlines()
-        names = [re.compile(r"\s+").split(x)[0] for x in air_pod if "airflow" in x]
+        pod_lines = air_pod.splitlines()
+        names = [re.compile(r"\s+").split(x)[0] for x in pod_lines if "airflow" in x]
         return len(names)
 
     @staticmethod
diff --git a/kubernetes-tests/tests/kubernetes_tests/test_kubernetes_pod_operator.py b/kubernetes-tests/tests/kubernetes_tests/test_kubernetes_pod_operator.py
index 64cc3dc0757..40bc4d2fbbb 100644
--- a/kubernetes-tests/tests/kubernetes_tests/test_kubernetes_pod_operator.py
+++ b/kubernetes-tests/tests/kubernetes_tests/test_kubernetes_pod_operator.py
@@ -41,7 +41,7 @@ from airflow.providers.cncf.kubernetes.hooks.kubernetes import KubernetesHook
 from airflow.providers.cncf.kubernetes.operators.pod import KubernetesPodOperator
 from airflow.providers.cncf.kubernetes.utils.pod_manager import OnFinishAction, PodManager
 from airflow.sdk.definitions.context import Context
-from airflow.utils import timezone
+from airflow.utils import timezone  # type: ignore[attr-defined]
 from airflow.utils.types import DagRunType
 from airflow.version import version as airflow_version
 from kubernetes_tests.test_base import BaseK8STest, StringContainingId
diff --git a/providers/.pre-commit-config.yaml b/providers/.pre-commit-config.yaml
index 4926188916f..db22b1bcec7 100644
--- a/providers/.pre-commit-config.yaml
+++ b/providers/.pre-commit-config.yaml
@@ -16,7 +16,7 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
   node: 22.19.0
diff --git a/providers/common/ai/.pre-commit-config.yaml b/providers/common/ai/.pre-commit-config.yaml
index 89ffddc5608..1a7bc73596f 100644
--- a/providers/common/ai/.pre-commit-config.yaml
+++ b/providers/common/ai/.pre-commit-config.yaml
@@ -16,7 +16,7 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.3.2'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
   node: 22.19.0
diff --git a/providers/common/compat/.pre-commit-config.yaml b/providers/common/compat/.pre-commit-config.yaml
index 32a7f0fd76b..71cfbd6dad2 100644
--- a/providers/common/compat/.pre-commit-config.yaml
+++ b/providers/common/compat/.pre-commit-config.yaml
@@ -16,7 +16,7 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
   node: 22.19.0
diff --git a/providers/edge3/.pre-commit-config.yaml b/providers/edge3/.pre-commit-config.yaml
index 133e2c3c4d2..90f5a0344da 100644
--- a/providers/edge3/.pre-commit-config.yaml
+++ b/providers/edge3/.pre-commit-config.yaml
@@ -16,7 +16,7 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.3.2'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
   node: 22.19.0
diff --git a/providers/fab/.pre-commit-config.yaml b/providers/fab/.pre-commit-config.yaml
index a77a705551c..5d59ede01f8 100644
--- a/providers/fab/.pre-commit-config.yaml
+++ b/providers/fab/.pre-commit-config.yaml
@@ -16,7 +16,7 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
   node: 22.19.0
diff --git a/providers/keycloak/.pre-commit-config.yaml b/providers/keycloak/.pre-commit-config.yaml
index ff86d492be7..68cdb82835c 100644
--- a/providers/keycloak/.pre-commit-config.yaml
+++ b/providers/keycloak/.pre-commit-config.yaml
@@ -16,7 +16,7 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
   node: 22.19.0
diff --git a/airflow-ctl-tests/.pre-commit-config.yaml b/scripts/.pre-commit-config.yaml
similarity index 77%
copy from airflow-ctl-tests/.pre-commit-config.yaml
copy to scripts/.pre-commit-config.yaml
index f6213b0f9a8..2b55cb7cfc9 100644
--- a/airflow-ctl-tests/.pre-commit-config.yaml
+++ b/scripts/.pre-commit-config.yaml
@@ -16,17 +16,16 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
 repos:
   - repo: local
     hooks:
-      - id: check-airflowctl-command-coverage
-        name: Check airflowctl CLI command test coverage
-        entry: ../scripts/ci/prek/check_airflowctl_command_coverage.py
+      - id: mypy-scripts
+        name: Run mypy for scripts
         language: python
+        entry: ./ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py scripts
         pass_filenames: false
-        files:
-          (?x)
-          ^tests/airflowctl_tests/.*\.py$
+        files: ^.*\.py$
+        require_serial: true
diff --git a/scripts/ci/prek/AGENTS.md b/scripts/ci/prek/AGENTS.md
index 2b36b334f73..e07c53a256c 100644
--- a/scripts/ci/prek/AGENTS.md
+++ b/scripts/ci/prek/AGENTS.md
@@ -10,9 +10,12 @@ This directory contains prek (pre-commit) hook scripts. Shared utilities live in
 
 ## Breeze CI image scripts
 
-Some prek scripts require the Breeze CI Docker image to run (e.g. mypy checks, OpenAPI spec
-generation, provider validation). These scripts use the `run_command_via_breeze_shell` helper
-from `common_prek_utils.py` to execute commands inside the container.
+Some prek scripts require the Breeze CI Docker image to run (e.g. `mypy-providers`, OpenAPI
+spec generation, provider validation). These scripts use the `run_command_via_breeze_shell`
+helper from `common_prek_utils.py` to execute commands inside the container. Non-provider
+mypy hooks (`mypy-airflow-core`, `mypy-task-sdk`, `mypy-shared-<dist>`, etc.) run locally via
+`run_mypy_full_dist_local_venv_or_breeze_in_ci.py`, which builds a dedicated virtualenv per hook under `.build/mypy-venvs/`
+using `uv sync --frozen --project <X> --group mypy` — no Breeze image needed.
 
 When adding a new breeze-dependent hook:
 
diff --git a/scripts/ci/prek/check_shared_mypy_hooks.py b/scripts/ci/prek/check_shared_mypy_hooks.py
new file mode 100755
index 00000000000..819d81a09f3
--- /dev/null
+++ b/scripts/ci/prek/check_shared_mypy_hooks.py
@@ -0,0 +1,92 @@
+#!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# /// script
+# requires-python = ">=3.10"
+# dependencies = []
+# ///
+"""Fail when any shared/<dist> workspace member is missing its mypy prek config.
+
+Every shared library has its own `mypy-shared-<dist>` prek hook backed by a
+dedicated `.pre-commit-config.yaml`. When a new shared distribution is added
+under `shared/`, the contributor must also add the matching prek config so the
+mypy hook runs for that library. This check enforces that rule.
+"""
+
+from __future__ import annotations
+
+import sys
+
+from common_prek_utils import AIRFLOW_ROOT_PATH
+
+SHARED_DIR = AIRFLOW_ROOT_PATH / "shared"
+
+EXPECTED_TEMPLATE = """\
+# <license header>
+---
+default_stages: [pre-commit, pre-push]
+minimum_prek_version: '0.3.4'
+default_language_version:
+  python: python3
+repos:
+  - repo: local
+    hooks:
+      - id: mypy-shared-{dist}
+        name: Run mypy for shared-{dist}
+        language: python
+        entry: >-
+          ../../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py
+          shared/{dist}
+        pass_filenames: false
+        files: ^.*\\.py$
+        require_serial: true
+"""
+
+
+def main() -> int:
+    missing: list[str] = []
+    for dist_dir in sorted(SHARED_DIR.iterdir()):
+        if not (dist_dir / "pyproject.toml").exists():
+            continue
+        dist = dist_dir.name
+        hook_id = f"mypy-shared-{dist}"
+        config = dist_dir / ".pre-commit-config.yaml"
+        if not config.exists() or hook_id not in config.read_text():
+            missing.append(dist)
+
+    if missing:
+        print(
+            "ERROR: The following shared/<dist> workspace members are missing their "
+            f"dedicated mypy prek hook: {', '.join(missing)}\n"
+        )
+        print(
+            "Every shared library must ship its own mypy-shared-<dist> hook so it is\n"
+            "type-checked in isolation (dedicated virtualenv + mypy cache under .build/).\n"
+        )
+        print(
+            "Create shared/<dist>/.pre-commit-config.yaml with the following contents\n"
+            "(add the ASF license header at the top) for each missing distribution:\n"
+        )
+        for dist in missing:
+            print(f"--- shared/{dist}/.pre-commit-config.yaml ---")
+            print(EXPECTED_TEMPLATE.format(dist=dist))
+        return 1
+    return 0
+
+
+if __name__ == "__main__":
+    sys.exit(main())
diff --git a/scripts/ci/prek/mypy_local_folder.py b/scripts/ci/prek/mypy_local_folder.py
deleted file mode 100755
index 568fe1c06e4..00000000000
--- a/scripts/ci/prek/mypy_local_folder.py
+++ /dev/null
@@ -1,250 +0,0 @@
-#!/usr/bin/env python
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-# /// script
-# requires-python = ">=3.10,<3.11"
-# dependencies = [
-#   "rich>=13.6.0",
-# ]
-# ///
-"""Run mypy on entire folders using local virtualenv (uv) instead of breeze.
-
-Used for non-provider projects: airflow-core, task-sdk, airflow-ctl, dev, scripts, devel-common.
-"""
-
-from __future__ import annotations
-
-import os
-import re
-import shlex
-import subprocess
-import sys
-
-from common_prek_utils import (
-    AIRFLOW_ROOT_PATH,
-)
-
-CI = os.environ.get("CI")
-
-try:
-    from rich.console import Console
-
-    console = Console(width=400, color_system="standard")
-except ImportError:
-    console = None  # type: ignore[assignment]
-
-if __name__ not in ("__main__", "__mp_main__"):
-    raise SystemExit(
-        "This file is intended to be executed as an executable program. You cannot use it as a module."
-        f"To run this script, run the ./{__file__} command"
-    )
-
-ALLOWED_FOLDERS = [
-    "airflow-core",
-    "dev",
-    "scripts",
-    "devel-common",
-    "task-sdk",
-    "airflow-ctl",
-]
-
-# Map folder(s) to the uv project to use for running mypy.
-# When multiple folders are checked together (e.g. dev + scripts), the first folder's project is used.
-FOLDER_TO_PROJECT = {
-    "airflow-core": "airflow-core",
-    "task-sdk": "task-sdk",
-    "airflow-ctl": "airflow-ctl",
-    "devel-common": "devel-common",
-    "dev": "dev",
-    "scripts": "scripts",
-}
-
-if len(sys.argv) < 2:
-    if console:
-        console.print(f"[yellow]You need to specify the folder to test as parameter: {ALLOWED_FOLDERS}\n")
-    else:
-        print(f"You need to specify the folder to test as parameter: {ALLOWED_FOLDERS}")
-    sys.exit(1)
-
-mypy_folders = sys.argv[1:]
-
-show_unused_warnings = os.environ.get("SHOW_UNUSED_MYPY_WARNINGS", "false")
-show_unreachable_warnings = os.environ.get("SHOW_UNREACHABLE_MYPY_WARNINGS", "false")
-
-for mypy_folder in mypy_folders:
-    if mypy_folder not in ALLOWED_FOLDERS:
-        if console:
-            console.print(
-                f"\n[red]ERROR: Folder `{mypy_folder}` is wrong.[/]\n\n"
-                f"All folders passed should be one of those: {ALLOWED_FOLDERS}\n"
-            )
-        else:
-            print(
-                f"\nERROR: Folder `{mypy_folder}` is wrong.\n\n"
-                f"All folders passed should be one of those: {ALLOWED_FOLDERS}\n"
-            )
-        sys.exit(1)
-
-exclude_regexps = [
-    re.compile(x)
-    for x in [
-        r"^.*/node_modules/.*",
-        r"^.*\\..*",
-        r"^.*/src/airflow/__init__.py$",
-    ]
-]
-
-
-def get_all_files(folder: str) -> list[str]:
-    files_to_check = []
-    python_file_paths = (AIRFLOW_ROOT_PATH / folder).resolve().rglob("*.py")
-    for file in python_file_paths:
-        if (
-            file.name not in ("conftest.py",)
-            and not any(x.match(file.as_posix()) for x in exclude_regexps)
-            and not any(part.startswith(".") for part in file.parts)
-        ):
-            files_to_check.append(file.relative_to(AIRFLOW_ROOT_PATH).as_posix())
-    return files_to_check
-
-
-all_files_to_check: list[str] = []
-for mypy_folder in mypy_folders:
-    all_files_to_check.extend(get_all_files(mypy_folder))
-
-if not all_files_to_check:
-    print("No files to test. Quitting")
-    sys.exit(0)
-
-# Write file list
-mypy_file_list = AIRFLOW_ROOT_PATH / "files" / "mypy_files.txt"
-mypy_file_list.parent.mkdir(parents=True, exist_ok=True)
-mypy_file_list.write_text("\n".join(all_files_to_check))
-
-if console:
-    console.print(f"[info]You can check the list of files in:[/] {mypy_file_list}")
-else:
-    print(f"You can check the list of files in: {mypy_file_list}")
-
-file_argument_local = f"@{mypy_file_list}"
-file_argument_ci = "@/files/mypy_files.txt"
-
-project = FOLDER_TO_PROJECT.get(mypy_folders[0], "devel-common")
-
-mypy_extra_args: list[str] = []
-
-if show_unused_warnings == "true":
-    if console:
-        console.print("[info]Running mypy with --warn-unused-ignores")
-    else:
-        print("Running mypy with --warn-unused-ignores")
-    mypy_extra_args.append("--warn-unused-ignores")
-
-if show_unreachable_warnings == "true":
-    if console:
-        console.print("[info]Running mypy with --warn-unreachable")
-    else:
-        print("Running mypy with --warn-unreachable")
-    mypy_extra_args.append("--warn-unreachable")
-
-if console:
-    console.print(f"[magenta]Running mypy for folders: {mypy_folders}[/]")
-else:
-    print(f"Running mypy for folders: {mypy_folders}")
-
-if CI:
-    # In CI, run inside the breeze Docker image to avoid needing a local environment
-    # and to not change uv.lock or synchronize dependencies.
-    from common_prek_utils import (
-        initialize_breeze_prek,
-        run_command_via_breeze_shell,
-    )
-
-    initialize_breeze_prek(__name__, __file__)
-
-    mypy_cmd = f"TERM=ansi mypy {shlex.quote(file_argument_ci)} {' '.join(mypy_extra_args)}"
-    result = run_command_via_breeze_shell(
-        cmd=["bash", "-c", mypy_cmd],
-        warn_image_upgrade_needed=True,
-        extra_env={
-            "INCLUDE_MYPY_VOLUME": "false",
-            "MOUNT_SOURCES": "selected",
-        },
-    )
-else:
-    # Locally, first synchronize the project's virtualenv with uv.lock so that mypy runs
-    # against the same dependency set CI uses. Without this, the local .venv can drift from
-    # uv.lock (e.g. after switching branches or installing extras) and mypy results would
-    # diverge from CI. --frozen ensures uv.lock itself is not updated.
-    sync_cmd = ["uv", "sync", "--frozen", "--project", project]
-    if console:
-        console.print(f"[magenta]Syncing virtualenv for project {project}: {' '.join(sync_cmd)}[/]")
-    else:
-        print(f"Syncing virtualenv for project {project}: {' '.join(sync_cmd)}")
-    sync_result = subprocess.run(
-        sync_cmd,
-        cwd=str(AIRFLOW_ROOT_PATH),
-        check=False,
-        env={**os.environ, "TERM": "ansi"},
-    )
-    if sync_result.returncode != 0:
-        msg = (
-            f"`uv sync --frozen --project {project}` failed. Fix the sync error before running mypy — "
-            "otherwise the local virtualenv may not match uv.lock and mypy results will diverge from CI.\n"
-        )
-        if console:
-            console.print(f"[red]{msg}")
-        else:
-            print(msg)
-        sys.exit(sync_result.returncode)
-
-    # Then run mypy via uv with --frozen to not update the lock file.
-    cmd = [
-        "uv",
-        "run",
-        "--frozen",
-        "--project",
-        project,
-        "--with",
-        "apache-airflow-devel-common[mypy]",
-        "mypy",
-        file_argument_local,
-        *mypy_extra_args,
-    ]
-
-    result = subprocess.run(
-        cmd,
-        cwd=str(AIRFLOW_ROOT_PATH),
-        check=False,
-        env={**os.environ, "TERM": "ansi"},
-    )
-
-if result.returncode != 0:
-    msg = (
-        "Mypy check failed. You can run mypy locally with:\n"
-        f"  prek run mypy-{mypy_folders[0]} --all-files\n"
-        "Or directly (first sync the virtualenv to match CI's dependency set):\n"
-        f"  uv sync --frozen --project {project}\n"
-        f'  uv run --frozen --project {project} --with "apache-airflow-devel-common[mypy]" mypy <files>\n'
-        "You can also clear the mypy cache with:\n"
-        "  breeze down --cleanup-mypy-cache\n"
-    )
-    if console:
-        console.print(f"[yellow]{msg}")
-    else:
-        print(msg)
-sys.exit(result.returncode)
diff --git a/scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py b/scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py
new file mode 100755
index 00000000000..44664d37c27
--- /dev/null
+++ b/scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py
@@ -0,0 +1,325 @@
+#!/usr/bin/env python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# /// script
+# requires-python = ">=3.10,<3.11"
+# dependencies = [
+#   "rich>=13.6.0",
+# ]
+# ///
+"""Run mypy on entire folders using local virtualenv (uv) instead of breeze.
+
+Used for non-provider projects: airflow-core, task-sdk, airflow-ctl, dev, scripts,
+devel-common, airflow-ctl-tests, helm-tests, airflow-e2e-tests,
+task-sdk-integration-tests, docker-tests, kubernetes-tests, shared.
+"""
+
+from __future__ import annotations
+
+import os
+import re
+import shlex
+import subprocess
+import sys
+from pathlib import Path
+
+from common_prek_utils import (
+    AIRFLOW_ROOT_PATH,
+)
+
+CI = os.environ.get("CI")
+
+try:
+    from rich.console import Console
+
+    console = Console(width=400, color_system="standard")
+except ImportError:
+    console = None  # type: ignore[assignment]
+
+if __name__ not in ("__main__", "__mp_main__"):
+    raise SystemExit(
+        "This file is intended to be executed as an executable program. You cannot use it as a module."
+        f"To run this script, run the ./{__file__} command"
+    )
+
+_TOP_LEVEL_ALLOWED_FOLDERS = [
+    "airflow-core",
+    "dev",
+    "scripts",
+    "devel-common",
+    "task-sdk",
+    "airflow-ctl",
+    "airflow-ctl-tests",
+    "helm-tests",
+    "airflow-e2e-tests",
+    "task-sdk-integration-tests",
+    "docker-tests",
+    "kubernetes-tests",
+]
+
+# Each shared/<dist> workspace member is an allowed folder in its own right, giving
+# every shared library its own dedicated mypy hook / virtualenv / cache.
+_SHARED_DISTS = sorted(
+    f"shared/{p.name}" for p in (AIRFLOW_ROOT_PATH / "shared").iterdir() if (p / "pyproject.toml").exists()
+)
+
+ALLOWED_FOLDERS = _TOP_LEVEL_ALLOWED_FOLDERS + _SHARED_DISTS
+
+# Map folder(s) to the uv project to use for running mypy.
+# When multiple folders are checked together, the first folder's project is used.
+FOLDER_TO_PROJECT = {f: f for f in ALLOWED_FOLDERS}
+
+# Projects that ship their own [tool.mypy] configuration in their pyproject.toml;
+# mypy must be invoked with --config-file pointing at that file so those sections
+# take precedence over the root pyproject.toml.
+FOLDER_TO_MYPY_CONFIG = {
+    "dev": "dev/pyproject.toml",
+    "scripts": "scripts/pyproject.toml",
+}
+
+if len(sys.argv) < 2:
+    if console:
+        console.print(f"[yellow]You need to specify the folder to test as parameter: {ALLOWED_FOLDERS}\n")
+    else:
+        print(f"You need to specify the folder to test as parameter: {ALLOWED_FOLDERS}")
+    sys.exit(1)
+
+mypy_folders = sys.argv[1:]
+
+show_unused_warnings = os.environ.get("SHOW_UNUSED_MYPY_WARNINGS", "false")
+show_unreachable_warnings = os.environ.get("SHOW_UNREACHABLE_MYPY_WARNINGS", "false")
+
+for mypy_folder in mypy_folders:
+    if mypy_folder not in ALLOWED_FOLDERS:
+        if console:
+            console.print(
+                f"\n[red]ERROR: Folder `{mypy_folder}` is wrong.[/]\n\n"
+                f"All folders passed should be one of those: {ALLOWED_FOLDERS}\n"
+            )
+        else:
+            print(
+                f"\nERROR: Folder `{mypy_folder}` is wrong.\n\n"
+                f"All folders passed should be one of those: {ALLOWED_FOLDERS}\n"
+            )
+        sys.exit(1)
+
+exclude_regexps = [
+    re.compile(x)
+    for x in [
+        r"^.*/node_modules/.*",
+        r"^.*\\..*",
+        r"^.*/src/airflow/__init__.py$",
+    ]
+]
+
+
+def get_all_files(folder: str) -> list[str]:
+    files_to_check = []
+    python_file_paths = (AIRFLOW_ROOT_PATH / folder).resolve().rglob("*.py")
+    for file in python_file_paths:
+        if (
+            file.name not in ("conftest.py",)
+            and not any(x.match(file.as_posix()) for x in exclude_regexps)
+            and not any(part.startswith(".") for part in file.parts)
+        ):
+            files_to_check.append(file.relative_to(AIRFLOW_ROOT_PATH).as_posix())
+    return files_to_check
+
+
+mypy_extra_args: list[str] = []
+
+if show_unused_warnings == "true":
+    if console:
+        console.print("[info]Running mypy with --warn-unused-ignores")
+    else:
+        print("Running mypy with --warn-unused-ignores")
+    mypy_extra_args.append("--warn-unused-ignores")
+
+if show_unreachable_warnings == "true":
+    if console:
+        console.print("[info]Running mypy with --warn-unreachable")
+    else:
+        print("Running mypy with --warn-unreachable")
+    mypy_extra_args.append("--warn-unreachable")
+
+
+def write_file_list(files: list[str], suffix: str = "") -> Path:
+    name = "mypy_files.txt" if not suffix else f"mypy_files_{suffix}.txt"
+    mypy_file_list = AIRFLOW_ROOT_PATH / "files" / name
+    mypy_file_list.parent.mkdir(parents=True, exist_ok=True)
+    mypy_file_list.write_text("\n".join(files))
+    if console:
+        console.print(f"[info]You can check the list of files in:[/] {mypy_file_list}")
+    else:
+        print(f"You can check the list of files in: {mypy_file_list}")
+    return mypy_file_list
+
+
+def run_local_mypy(project: str, hook_name: str, files: list[str], config_file: str | None = None) -> int:
+    """Sync a dedicated mypy venv under .build/ and run mypy on the given files.
+
+    Each hook gets its own virtualenv and mypy cache so running mypy never mutates the
+    contributor's regular project .venv and each hook keeps a stable, CI-aligned
+    dependency set. UV_PROJECT_ENVIRONMENT redirects uv away from the default
+    <project>/.venv to our cached location.
+    """
+    mypy_venv_dir = AIRFLOW_ROOT_PATH / ".build" / "mypy-venvs" / hook_name
+    mypy_cache_dir = AIRFLOW_ROOT_PATH / ".build" / "mypy-caches" / hook_name
+    mypy_venv_dir.parent.mkdir(parents=True, exist_ok=True)
+    mypy_cache_dir.parent.mkdir(parents=True, exist_ok=True)
+
+    run_env = {
+        **os.environ,
+        "TERM": "ansi",
+        "UV_PROJECT_ENVIRONMENT": str(mypy_venv_dir),
+    }
+
+    sync_cmd = ["uv", "sync", "--frozen", "--project", project, "--group", "mypy"]
+    if console:
+        console.print(
+            f"[magenta]Syncing dedicated mypy virtualenv ({mypy_venv_dir}) "
+            f"for project {project}: {' '.join(sync_cmd)}[/]"
+        )
+    else:
+        print(
+            f"Syncing dedicated mypy virtualenv ({mypy_venv_dir}) for project {project}: {' '.join(sync_cmd)}"
+        )
+    sync_result = subprocess.run(
+        sync_cmd,
+        cwd=str(AIRFLOW_ROOT_PATH),
+        check=False,
+        env=run_env,
+    )
+    if sync_result.returncode != 0:
+        msg = (
+            f"`uv sync --frozen --project {project}` failed for the mypy virtualenv at "
+            f"{mypy_venv_dir}. Fix the sync error before running mypy — otherwise the "
+            "dedicated mypy virtualenv will not match uv.lock and results will diverge "
+            "from CI. You can remove the cached virtualenv with:\n"
+            "  breeze down --cleanup-mypy-cache\n"
+        )
+        if console:
+            console.print(f"[red]{msg}")
+        else:
+            print(msg)
+        return sync_result.returncode
+
+    mypy_file_list = write_file_list(files, suffix=hook_name.replace("/", "_"))
+
+    # --follow-imports=silent: each hook only reports errors for files it owns. Transitive
+    # errors from imports into other workspace projects are not reported here — those files
+    # are covered by their own hook. Without this, mypy can produce different results for the
+    # same file across hooks because each hook's virtualenv installs a different dependency
+    # set that influences type inference.
+    cmd = [
+        "uv",
+        "run",
+        "--frozen",
+        "--project",
+        project,
+        "--group",
+        "mypy",
+        "mypy",
+        "--cache-dir",
+        str(mypy_cache_dir),
+        "--follow-imports=silent",
+    ]
+    if config_file is not None:
+        cmd += ["--config-file", config_file]
+    cmd += [f"@{mypy_file_list}", *mypy_extra_args]
+
+    result = subprocess.run(
+        cmd,
+        cwd=str(AIRFLOW_ROOT_PATH),
+        check=False,
+        env=run_env,
+    )
+    return result.returncode
+
+
+if console:
+    console.print(f"[magenta]Running mypy for folders: {mypy_folders}[/]")
+else:
+    print(f"Running mypy for folders: {mypy_folders}")
+
+if CI:
+    # In CI, run inside the breeze Docker image to avoid needing a local environment
+    # and to not change uv.lock or synchronize dependencies.
+    from common_prek_utils import (
+        initialize_breeze_prek,
+        run_command_via_breeze_shell,
+    )
+
+    initialize_breeze_prek(__name__, __file__)
+
+    all_files_to_check = []
+    for mypy_folder in mypy_folders:
+        all_files_to_check.extend(get_all_files(mypy_folder))
+
+    if not all_files_to_check:
+        print("No files to test. Quitting")
+        sys.exit(0)
+
+    write_file_list(all_files_to_check)
+    file_argument_ci = "@/files/mypy_files.txt"
+
+    mypy_cmd = (
+        f"TERM=ansi mypy --follow-imports=silent {shlex.quote(file_argument_ci)} {' '.join(mypy_extra_args)}"
+    )
+    result = run_command_via_breeze_shell(
+        cmd=["bash", "-c", mypy_cmd],
+        warn_image_upgrade_needed=True,
+        extra_env={
+            "INCLUDE_MYPY_VOLUME": "false",
+            "MOUNT_SOURCES": "selected",
+        },
+    )
+    returncode = result.returncode
+else:
+    all_files_to_check = []
+    for mypy_folder in mypy_folders:
+        all_files_to_check.extend(get_all_files(mypy_folder))
+
+    if not all_files_to_check:
+        print("No files to test. Quitting")
+        sys.exit(0)
+
+    project = FOLDER_TO_PROJECT.get(mypy_folders[0], "devel-common")
+    # hook_name derives venv/cache paths under .build/; replace "/" so "shared/dist"
+    # becomes ".build/mypy-venvs/shared-dist" rather than a nested path.
+    hook_name = mypy_folders[0].replace("/", "-")
+    returncode = run_local_mypy(
+        project=project,
+        hook_name=hook_name,
+        files=all_files_to_check,
+        config_file=FOLDER_TO_MYPY_CONFIG.get(mypy_folders[0]),
+    )
+
+if returncode != 0:
+    hook_label = mypy_folders[0].replace("/", "-")
+    msg = (
+        "Mypy check failed. You can run mypy locally with:\n"
+        f"  prek run mypy-{hook_label} --all-files\n"
+        "The hook uses dedicated virtualenv(s) and mypy cache(s) under .build/ so it does\n"
+        "not touch your regular project .venv. You can clear both with:\n"
+        "  breeze down --cleanup-mypy-cache\n"
+    )
+    if console:
+        console.print(f"[yellow]{msg}")
+    else:
+        print(msg)
+sys.exit(returncode)
diff --git a/scripts/pyproject.toml b/scripts/pyproject.toml
index d2c3e06c96e..952969a15df 100644
--- a/scripts/pyproject.toml
+++ b/scripts/pyproject.toml
@@ -61,6 +61,10 @@ dependencies = [
 dev = [
     "apache-airflow-devel-common",
 ]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
+
 
 [tool.uv.sources]
 apache-airflow-devel-common = {workspace = true}
@@ -76,3 +80,64 @@ packages = ["ci", "cov", "docker", "in_container", "tools"]
 # "from common_prek_utils import ..." inside those modules resolve correctly
 # (mirroring what Python does automatically when scripts are run directly).
 pythonpath = [".", "ci/prek", "in_container"]
+
+[tool.mypy]
+ignore_missing_imports = true
+no_implicit_optional = true
+warn_redundant_casts = true
+warn_unused_ignores = false
+pretty = true
+show_error_codes = true
+disable_error_code = [
+    "annotation-unchecked",
+]
+namespace_packages = true
+explicit_package_bases = true
+exclude = [
+    ".*/node_modules/.*",
+    # Exclude hidden files and directories
+    ".*/\\..*"
+]
+# Workspace packages (airflow, airflow.sdk, airflowctl, airflow_breeze, tests_common)
+# are installed editable into the hook's virtualenv by `uv sync`, so mypy resolves them
+# via site-packages — no mypy_path entries needed.
+
+[[tool.mypy.overrides]]
+module="airflow.config_templates.default_webserver_config"
+disable_error_code = [
+    "var-annotated",
+]
+
+[[tool.mypy.overrides]]
+module="airflow.migrations.*"
+ignore_errors = true
+
+[[tool.mypy.overrides]]
+module="airflow.*._vendor.*"
+ignore_errors = true
+
+[[tool.mypy.overrides]]
+module= [
+    "google.cloud.*",
+    "azure.*",
+]
+no_implicit_optional = false
+
+[[tool.mypy.overrides]]
+module = "google.api_core.gapic_v1"
+ignore_errors = true
+
+[[tool.mypy.overrides]]
+module=[
+    "referencing.*",
+    # Beam has some old type annotations, and they introduced an error recently with bad signature of
+    # a function. This is captured in https://github.com/apache/beam/issues/29927
+    # and we should remove this exclusion when it is fixed.
+    "apache_beam.*"
+]
+ignore_errors = true
+
+# airflowctl autogenered datamodels
+[[tool.mypy.overrides]]
+module="airflowctl.api.datamodels.*"
+ignore_errors = true
diff --git a/airflow-ctl-tests/.pre-commit-config.yaml b/shared/configuration/.pre-commit-config.yaml
similarity index 77%
copy from airflow-ctl-tests/.pre-commit-config.yaml
copy to shared/configuration/.pre-commit-config.yaml
index f6213b0f9a8..9706d8602d6 100644
--- a/airflow-ctl-tests/.pre-commit-config.yaml
+++ b/shared/configuration/.pre-commit-config.yaml
@@ -16,17 +16,16 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
 repos:
   - repo: local
     hooks:
-      - id: check-airflowctl-command-coverage
-        name: Check airflowctl CLI command test coverage
-        entry: ../scripts/ci/prek/check_airflowctl_command_coverage.py
+      - id: mypy-shared-configuration
+        name: Run mypy for shared-configuration
         language: python
+        entry: ../../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py shared/configuration
         pass_filenames: false
-        files:
-          (?x)
-          ^tests/airflowctl_tests/.*\.py$
+        files: ^.*\.py$
+        require_serial: true
diff --git a/shared/configuration/pyproject.toml b/shared/configuration/pyproject.toml
index 939df7d0dad..bef10b4ce08 100644
--- a/shared/configuration/pyproject.toml
+++ b/shared/configuration/pyproject.toml
@@ -35,6 +35,10 @@ dev = [
     "apache-airflow-devel-common",
     "apache-airflow-shared-module-loading",
 ]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
+
 
 [build-system]
 requires = [
diff --git a/shared/configuration/src/airflow_shared/configuration/parser.py b/shared/configuration/src/airflow_shared/configuration/parser.py
index c34911039a4..9ffd5a7b441 100644
--- a/shared/configuration/src/airflow_shared/configuration/parser.py
+++ b/shared/configuration/src/airflow_shared/configuration/parser.py
@@ -622,7 +622,7 @@ class AirflowConfigParser(ConfigParser):
             )
         if value is VALUE_NOT_FOUND_SENTINEL:
             value = fallback
-        if raw and value is not None:
+        if raw and isinstance(value, str):
             return value.replace("%", "%%")
         return value
 
@@ -844,7 +844,7 @@ class AirflowConfigParser(ConfigParser):
                 # when display_source = true, we know that the config_sources contains tuple
                 opt, source = config_sources[section][key]  # type: ignore
             else:
-                opt = config_sources[section][key]
+                opt = config_sources[section][key]  # type: ignore[assignment]
             if opt == self.get_default_value(section, key):
                 del config_sources[section][key]
 
@@ -1631,7 +1631,9 @@ class AirflowConfigParser(ConfigParser):
         )
         return list(dict.fromkeys(itertools.chain(all_options_from_defaults, my_own_options)))
 
-    def has_option(self, section: str, option: str, lookup_from_deprecated: bool = True, **kwargs) -> bool:
+    def has_option(  # type: ignore[override]
+        self, section: str, option: str, lookup_from_deprecated: bool = True, **kwargs
+    ) -> bool:
         """
         Check if option is defined.
 
@@ -1660,7 +1662,7 @@ class AirflowConfigParser(ConfigParser):
         except (NoOptionError, NoSectionError, AirflowConfigException):
             return False
 
-    def set(self, section: str, option: str, value: str | None = None) -> None:
+    def set(self, section: str, option: str, value: str | None = None) -> None:  # type: ignore[override]
         """
         Set an option to the given value.
 
@@ -1675,7 +1677,7 @@ class AirflowConfigParser(ConfigParser):
             self.add_section(section)
         super().set(section, option, value)
 
-    def remove_option(self, section: str, option: str, remove_default: bool = True):
+    def remove_option(self, section: str, option: str, remove_default: bool = True):  # type: ignore[override]
         """
         Remove an option if it exists in config from a file or default config.
 
diff --git a/airflow-ctl-tests/.pre-commit-config.yaml b/shared/dagnode/.pre-commit-config.yaml
similarity index 77%
copy from airflow-ctl-tests/.pre-commit-config.yaml
copy to shared/dagnode/.pre-commit-config.yaml
index f6213b0f9a8..34f7fe42212 100644
--- a/airflow-ctl-tests/.pre-commit-config.yaml
+++ b/shared/dagnode/.pre-commit-config.yaml
@@ -16,17 +16,16 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
 repos:
   - repo: local
     hooks:
-      - id: check-airflowctl-command-coverage
-        name: Check airflowctl CLI command test coverage
-        entry: ../scripts/ci/prek/check_airflowctl_command_coverage.py
+      - id: mypy-shared-dagnode
+        name: Run mypy for shared-dagnode
         language: python
+        entry: ../../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py shared/dagnode
         pass_filenames: false
-        files:
-          (?x)
-          ^tests/airflowctl_tests/.*\.py$
+        files: ^.*\.py$
+        require_serial: true
diff --git a/shared/dagnode/pyproject.toml b/shared/dagnode/pyproject.toml
index 55c9e84552e..a4de72c566c 100644
--- a/shared/dagnode/pyproject.toml
+++ b/shared/dagnode/pyproject.toml
@@ -31,6 +31,10 @@ dependencies = [
 dev = [
     "apache-airflow-devel-common",
 ]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
+
 
 [build-system]
 requires = [
diff --git a/shared/dagnode/tests/dagnode/test_node.py b/shared/dagnode/tests/dagnode/test_node.py
index 4259ca7555f..fa6600b8804 100644
--- a/shared/dagnode/tests/dagnode/test_node.py
+++ b/shared/dagnode/tests/dagnode/test_node.py
@@ -34,7 +34,7 @@ class TaskGroup:
     """Task group type for tests."""
 
     node_id: str = attrs.field(init=False, default="test_group_id")
-    prefix_group_id: str
+    prefix_group_id: bool
 
 
 class Dag:
@@ -46,8 +46,8 @@ class Dag:
 class ConcreteDAGNode(GenericDAGNode[Dag, Task, TaskGroup]):
     """Concrete DAGNode variant for tests."""
 
-    dag = None
-    task_group = None
+    dag: Dag | None = None
+    task_group: TaskGroup | None = None
 
     @property
     def node_id(self) -> str:
diff --git a/airflow-ctl-tests/.pre-commit-config.yaml b/shared/listeners/.pre-commit-config.yaml
similarity index 77%
copy from airflow-ctl-tests/.pre-commit-config.yaml
copy to shared/listeners/.pre-commit-config.yaml
index f6213b0f9a8..62f226fab74 100644
--- a/airflow-ctl-tests/.pre-commit-config.yaml
+++ b/shared/listeners/.pre-commit-config.yaml
@@ -16,17 +16,16 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
 repos:
   - repo: local
     hooks:
-      - id: check-airflowctl-command-coverage
-        name: Check airflowctl CLI command test coverage
-        entry: ../scripts/ci/prek/check_airflowctl_command_coverage.py
+      - id: mypy-shared-listeners
+        name: Run mypy for shared-listeners
         language: python
+        entry: ../../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py shared/listeners
         pass_filenames: false
-        files:
-          (?x)
-          ^tests/airflowctl_tests/.*\.py$
+        files: ^.*\.py$
+        require_serial: true
diff --git a/shared/listeners/pyproject.toml b/shared/listeners/pyproject.toml
index 6ab004f642f..90f0a1860aa 100644
--- a/shared/listeners/pyproject.toml
+++ b/shared/listeners/pyproject.toml
@@ -32,6 +32,10 @@ dependencies = [
 dev = [
     "apache-airflow-devel-common",
 ]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
+
 
 [build-system]
 requires = [
diff --git a/airflow-ctl-tests/.pre-commit-config.yaml b/shared/logging/.pre-commit-config.yaml
similarity index 77%
copy from airflow-ctl-tests/.pre-commit-config.yaml
copy to shared/logging/.pre-commit-config.yaml
index f6213b0f9a8..7440bc4add9 100644
--- a/airflow-ctl-tests/.pre-commit-config.yaml
+++ b/shared/logging/.pre-commit-config.yaml
@@ -16,17 +16,16 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
 repos:
   - repo: local
     hooks:
-      - id: check-airflowctl-command-coverage
-        name: Check airflowctl CLI command test coverage
-        entry: ../scripts/ci/prek/check_airflowctl_command_coverage.py
+      - id: mypy-shared-logging
+        name: Run mypy for shared-logging
         language: python
+        entry: ../../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py shared/logging
         pass_filenames: false
-        files:
-          (?x)
-          ^tests/airflowctl_tests/.*\.py$
+        files: ^.*\.py$
+        require_serial: true
diff --git a/shared/logging/pyproject.toml b/shared/logging/pyproject.toml
index 6ff377300cf..1cf0e140b30 100644
--- a/shared/logging/pyproject.toml
+++ b/shared/logging/pyproject.toml
@@ -33,6 +33,10 @@ dependencies = [
 dev = [
     "apache-airflow-devel-common",
 ]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
+
 
 [build-system]
 requires = [
diff --git a/shared/logging/src/airflow_shared/logging/_noncaching.py b/shared/logging/src/airflow_shared/logging/_noncaching.py
index 7a8e21fbe38..e6509e14a40 100644
--- a/shared/logging/src/airflow_shared/logging/_noncaching.py
+++ b/shared/logging/src/airflow_shared/logging/_noncaching.py
@@ -29,7 +29,8 @@ _IO = TypeVar("_IO", TextIO, BinaryIO)
 def make_file_io_non_caching(io: _IO) -> _IO:
     try:
         fd = io.fileno()
-        os.posix_fadvise(fd, 0, 0, os.POSIX_FADV_DONTNEED)
+        # posix_fadvise / POSIX_FADV_DONTNEED are Linux-only; ignored on other platforms at runtime.
+        os.posix_fadvise(fd, 0, 0, os.POSIX_FADV_DONTNEED)  # type: ignore[attr-defined,unused-ignore]
     except Exception:
         # in case either file descriptor cannot be retrieved or fadvise is not available
         # we should simply return the wrapper retrieved by FileHandler's open method
diff --git a/airflow-ctl-tests/.pre-commit-config.yaml b/shared/module_loading/.pre-commit-config.yaml
similarity index 77%
copy from airflow-ctl-tests/.pre-commit-config.yaml
copy to shared/module_loading/.pre-commit-config.yaml
index f6213b0f9a8..fd00e315b0e 100644
--- a/airflow-ctl-tests/.pre-commit-config.yaml
+++ b/shared/module_loading/.pre-commit-config.yaml
@@ -16,17 +16,16 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
 repos:
   - repo: local
     hooks:
-      - id: check-airflowctl-command-coverage
-        name: Check airflowctl CLI command test coverage
-        entry: ../scripts/ci/prek/check_airflowctl_command_coverage.py
+      - id: mypy-shared-module_loading
+        name: Run mypy for shared-module_loading
         language: python
+        entry: ../../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py shared/module_loading
         pass_filenames: false
-        files:
-          (?x)
-          ^tests/airflowctl_tests/.*\.py$
+        files: ^.*\.py$
+        require_serial: true
diff --git a/shared/module_loading/pyproject.toml b/shared/module_loading/pyproject.toml
index a26fa76db88..330ea06ace8 100644
--- a/shared/module_loading/pyproject.toml
+++ b/shared/module_loading/pyproject.toml
@@ -32,6 +32,10 @@ dependencies = [
 dev = [
     "apache-airflow-devel-common",
 ]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
+
 
 [build-system]
 requires = [
diff --git a/airflow-ctl-tests/.pre-commit-config.yaml b/shared/observability/.pre-commit-config.yaml
similarity index 77%
copy from airflow-ctl-tests/.pre-commit-config.yaml
copy to shared/observability/.pre-commit-config.yaml
index f6213b0f9a8..eab5206f133 100644
--- a/airflow-ctl-tests/.pre-commit-config.yaml
+++ b/shared/observability/.pre-commit-config.yaml
@@ -16,17 +16,16 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
 repos:
   - repo: local
     hooks:
-      - id: check-airflowctl-command-coverage
-        name: Check airflowctl CLI command test coverage
-        entry: ../scripts/ci/prek/check_airflowctl_command_coverage.py
+      - id: mypy-shared-observability
+        name: Run mypy for shared-observability
         language: python
+        entry: ../../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py shared/observability
         pass_filenames: false
-        files:
-          (?x)
-          ^tests/airflowctl_tests/.*\.py$
+        files: ^.*\.py$
+        require_serial: true
diff --git a/shared/observability/pyproject.toml b/shared/observability/pyproject.toml
index 85b5cd6bcae..7efee710eef 100644
--- a/shared/observability/pyproject.toml
+++ b/shared/observability/pyproject.toml
@@ -49,6 +49,10 @@ dev = [
     "apache-airflow-devel-common",
     "apache-airflow-shared-observability[all]",
 ]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
+
 
 [build-system]
 requires = [
diff --git a/shared/observability/src/airflow_shared/observability/common.py b/shared/observability/src/airflow_shared/observability/common.py
index a92a26543d3..c611782daa0 100644
--- a/shared/observability/src/airflow_shared/observability/common.py
+++ b/shared/observability/src/airflow_shared/observability/common.py
@@ -48,13 +48,25 @@ def get_otel_data_exporter(
 
     # If the protocol env var isn't set, then it will be None,
     # and it will default to an http/protobuf exporter.
+    # The grpc and http variants are incompatible types to mypy but functionally interchangeable here.
+    OTLPMetricExporter: type
+    OTLPSpanExporter: type
     if env_endpoint and env_exporter_protocol == "grpc":
-        from opentelemetry.exporter.otlp.proto.grpc.metric_exporter import OTLPMetricExporter
-        from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import OTLPSpanExporter
+        from opentelemetry.exporter.otlp.proto.grpc.metric_exporter import (
+            OTLPMetricExporter,  # type: ignore[no-redef]
+        )
+        from opentelemetry.exporter.otlp.proto.grpc.trace_exporter import (
+            OTLPSpanExporter,  # type: ignore[no-redef]
+        )
     else:
-        from opentelemetry.exporter.otlp.proto.http.metric_exporter import OTLPMetricExporter
-        from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
-
+        from opentelemetry.exporter.otlp.proto.http.metric_exporter import (
+            OTLPMetricExporter,  # type: ignore[no-redef]
+        )
+        from opentelemetry.exporter.otlp.proto.http.trace_exporter import (
+            OTLPSpanExporter,  # type: ignore[no-redef]
+        )
+
+    exporter: SpanExporter | MetricExporter
     if env_endpoint:
         if host is not None and port is not None:
             log.warning(
diff --git a/shared/observability/src/airflow_shared/observability/metrics/otel_logger.py b/shared/observability/src/airflow_shared/observability/metrics/otel_logger.py
index 14726e3ecc0..c8db3ee02f9 100644
--- a/shared/observability/src/airflow_shared/observability/metrics/otel_logger.py
+++ b/shared/observability/src/airflow_shared/observability/metrics/otel_logger.py
@@ -418,7 +418,7 @@ def get_otel_logger(
 
     readers = [
         PeriodicExportingMetricReader(
-            exporter=metric_exporter,
+            exporter=metric_exporter,  # type: ignore[arg-type]
             export_interval_millis=interval,  # type: ignore[arg-type]
         )
     ]
diff --git a/shared/observability/src/airflow_shared/observability/metrics/stats.py b/shared/observability/src/airflow_shared/observability/metrics/stats.py
index be153c298d6..5cd3c098d81 100644
--- a/shared/observability/src/airflow_shared/observability/metrics/stats.py
+++ b/shared/observability/src/airflow_shared/observability/metrics/stats.py
@@ -65,6 +65,7 @@ def normalize_name_for_stats(name: str, log_warning: bool = True) -> str:
 class _Stats(type):
     factory: Callable[[], StatsLogger | NoStatsLogger] | None = None
     instance: StatsLogger | NoStatsLogger | None = None
+    _instance_pid: int | None = None
 
     def __getattr__(cls, name: str) -> str:
         factory = type.__getattribute__(cls, "factory")
diff --git a/airflow-ctl-tests/.pre-commit-config.yaml b/shared/plugins_manager/.pre-commit-config.yaml
similarity index 77%
copy from airflow-ctl-tests/.pre-commit-config.yaml
copy to shared/plugins_manager/.pre-commit-config.yaml
index f6213b0f9a8..9180e2b1035 100644
--- a/airflow-ctl-tests/.pre-commit-config.yaml
+++ b/shared/plugins_manager/.pre-commit-config.yaml
@@ -16,17 +16,16 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
 repos:
   - repo: local
     hooks:
-      - id: check-airflowctl-command-coverage
-        name: Check airflowctl CLI command test coverage
-        entry: ../scripts/ci/prek/check_airflowctl_command_coverage.py
+      - id: mypy-shared-plugins_manager
+        name: Run mypy for shared-plugins_manager
         language: python
+        entry: ../../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py shared/plugins_manager
         pass_filenames: false
-        files:
-          (?x)
-          ^tests/airflowctl_tests/.*\.py$
+        files: ^.*\.py$
+        require_serial: true
diff --git a/shared/plugins_manager/pyproject.toml b/shared/plugins_manager/pyproject.toml
index b80b85268e5..1fae534b6b3 100644
--- a/shared/plugins_manager/pyproject.toml
+++ b/shared/plugins_manager/pyproject.toml
@@ -36,6 +36,10 @@ dev = [
     "apache-airflow-shared-module-loading",
     "apache-airflow-shared-listeners",
 ]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
+
 
 [build-system]
 requires = [
diff --git a/providers/keycloak/.pre-commit-config.yaml b/shared/providers_discovery/.pre-commit-config.yaml
similarity index 75%
copy from providers/keycloak/.pre-commit-config.yaml
copy to shared/providers_discovery/.pre-commit-config.yaml
index ff86d492be7..2c26b25a954 100644
--- a/providers/keycloak/.pre-commit-config.yaml
+++ b/shared/providers_discovery/.pre-commit-config.yaml
@@ -16,17 +16,18 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
-  node: 22.19.0
-  golang: 1.24.0
 repos:
   - repo: local
     hooks:
-      - id: generate-openapi-spec-keycloak
-        name: Generate the FastAPI API spec for Keycloak
+      - id: mypy-shared-providers_discovery
+        name: Run mypy for shared-providers_discovery
         language: python
-        entry: ../../scripts/ci/prek/generate_openapi_spec_providers.py keycloak
+        entry: >-
+          ../../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py
+          shared/providers_discovery
         pass_filenames: false
-        files: ^src/airflow/providers/keycloak/auth_manager/.*\.py$
+        files: ^.*\.py$
+        require_serial: true
diff --git a/shared/providers_discovery/pyproject.toml b/shared/providers_discovery/pyproject.toml
index 7517d6d13d2..ef86a049db4 100644
--- a/shared/providers_discovery/pyproject.toml
+++ b/shared/providers_discovery/pyproject.toml
@@ -39,6 +39,10 @@ dev = [
     "apache-airflow-devel-common",
     "apache-airflow-shared-module-loading",
 ]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
+
 
 [build-system]
 requires = [
diff --git a/airflow-ctl-tests/.pre-commit-config.yaml b/shared/secrets_backend/.pre-commit-config.yaml
similarity index 77%
copy from airflow-ctl-tests/.pre-commit-config.yaml
copy to shared/secrets_backend/.pre-commit-config.yaml
index f6213b0f9a8..93175830f9f 100644
--- a/airflow-ctl-tests/.pre-commit-config.yaml
+++ b/shared/secrets_backend/.pre-commit-config.yaml
@@ -16,17 +16,16 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
 repos:
   - repo: local
     hooks:
-      - id: check-airflowctl-command-coverage
-        name: Check airflowctl CLI command test coverage
-        entry: ../scripts/ci/prek/check_airflowctl_command_coverage.py
+      - id: mypy-shared-secrets_backend
+        name: Run mypy for shared-secrets_backend
         language: python
+        entry: ../../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py shared/secrets_backend
         pass_filenames: false
-        files:
-          (?x)
-          ^tests/airflowctl_tests/.*\.py$
+        files: ^.*\.py$
+        require_serial: true
diff --git a/shared/secrets_backend/pyproject.toml b/shared/secrets_backend/pyproject.toml
index 59aa0af2915..1d3d8df067a 100644
--- a/shared/secrets_backend/pyproject.toml
+++ b/shared/secrets_backend/pyproject.toml
@@ -29,6 +29,10 @@ dependencies = []
 dev = [
     "apache-airflow-devel-common",
 ]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
+
 
 [build-system]
 requires = [
diff --git a/shared/secrets_backend/src/airflow_shared/secrets_backend/base.py b/shared/secrets_backend/src/airflow_shared/secrets_backend/base.py
index 566ed379c85..a2715b93ca9 100644
--- a/shared/secrets_backend/src/airflow_shared/secrets_backend/base.py
+++ b/shared/secrets_backend/src/airflow_shared/secrets_backend/base.py
@@ -84,7 +84,7 @@ class BaseSecretsBackend(ABC):
     def _deserialize_connection_value(conn_class: type, conn_id: str, value: str):
         value = value.strip()
         if value[0] == "{":
-            return conn_class.from_json(value=value, conn_id=conn_id)
+            return conn_class.from_json(value=value, conn_id=conn_id)  # type: ignore[attr-defined]
 
         # TODO: Only sdk has from_uri defined on it. Is it worthwhile developing the core path or not?
         if hasattr(conn_class, "from_uri"):
diff --git a/airflow-ctl-tests/.pre-commit-config.yaml b/shared/secrets_masker/.pre-commit-config.yaml
similarity index 77%
copy from airflow-ctl-tests/.pre-commit-config.yaml
copy to shared/secrets_masker/.pre-commit-config.yaml
index f6213b0f9a8..8025b4429c2 100644
--- a/airflow-ctl-tests/.pre-commit-config.yaml
+++ b/shared/secrets_masker/.pre-commit-config.yaml
@@ -16,17 +16,16 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
 repos:
   - repo: local
     hooks:
-      - id: check-airflowctl-command-coverage
-        name: Check airflowctl CLI command test coverage
-        entry: ../scripts/ci/prek/check_airflowctl_command_coverage.py
+      - id: mypy-shared-secrets_masker
+        name: Run mypy for shared-secrets_masker
         language: python
+        entry: ../../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py shared/secrets_masker
         pass_filenames: false
-        files:
-          (?x)
-          ^tests/airflowctl_tests/.*\.py$
+        files: ^.*\.py$
+        require_serial: true
diff --git a/shared/secrets_masker/pyproject.toml b/shared/secrets_masker/pyproject.toml
index a971925888e..9be22a40edf 100644
--- a/shared/secrets_masker/pyproject.toml
+++ b/shared/secrets_masker/pyproject.toml
@@ -34,6 +34,10 @@ dependencies = [
 dev = [
     "apache-airflow-devel-common",
 ]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
+
 
 [build-system]
 requires = [
diff --git a/shared/secrets_masker/tests/secrets_masker/test_secrets_masker.py b/shared/secrets_masker/tests/secrets_masker/test_secrets_masker.py
index 274e611d57c..e23cb1c2744 100644
--- a/shared/secrets_masker/tests/secrets_masker/test_secrets_masker.py
+++ b/shared/secrets_masker/tests/secrets_masker/test_secrets_masker.py
@@ -46,7 +46,7 @@ PASSWORD = "password"
 
 
 def configure_secrets_masker_for_test(
-    masker: SecretsMasker, min_length: int = 5, sensitive_fields: list[str] = None
+    masker: SecretsMasker, min_length: int = 5, sensitive_fields: list[str] | None = None
 ):
     """Helper function to configure a SecretsMasker instance for testing."""
     masker.min_length_to_mask = min_length
diff --git a/airflow-ctl-tests/.pre-commit-config.yaml b/shared/serialization/.pre-commit-config.yaml
similarity index 77%
copy from airflow-ctl-tests/.pre-commit-config.yaml
copy to shared/serialization/.pre-commit-config.yaml
index f6213b0f9a8..e0619c11dfd 100644
--- a/airflow-ctl-tests/.pre-commit-config.yaml
+++ b/shared/serialization/.pre-commit-config.yaml
@@ -16,17 +16,16 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
 repos:
   - repo: local
     hooks:
-      - id: check-airflowctl-command-coverage
-        name: Check airflowctl CLI command test coverage
-        entry: ../scripts/ci/prek/check_airflowctl_command_coverage.py
+      - id: mypy-shared-serialization
+        name: Run mypy for shared-serialization
         language: python
+        entry: ../../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py shared/serialization
         pass_filenames: false
-        files:
-          (?x)
-          ^tests/airflowctl_tests/.*\.py$
+        files: ^.*\.py$
+        require_serial: true
diff --git a/shared/serialization/pyproject.toml b/shared/serialization/pyproject.toml
index 48c2cb91edb..c547da3ee5c 100644
--- a/shared/serialization/pyproject.toml
+++ b/shared/serialization/pyproject.toml
@@ -29,6 +29,10 @@ dependencies = []
 dev = [
     "apache-airflow-devel-common",
 ]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
+
 
 [build-system]
 requires = [
diff --git a/providers/keycloak/.pre-commit-config.yaml b/shared/template_rendering/.pre-commit-config.yaml
similarity index 75%
copy from providers/keycloak/.pre-commit-config.yaml
copy to shared/template_rendering/.pre-commit-config.yaml
index ff86d492be7..cbe27c38eba 100644
--- a/providers/keycloak/.pre-commit-config.yaml
+++ b/shared/template_rendering/.pre-commit-config.yaml
@@ -16,17 +16,18 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
-  node: 22.19.0
-  golang: 1.24.0
 repos:
   - repo: local
     hooks:
-      - id: generate-openapi-spec-keycloak
-        name: Generate the FastAPI API spec for Keycloak
+      - id: mypy-shared-template_rendering
+        name: Run mypy for shared-template_rendering
         language: python
-        entry: ../../scripts/ci/prek/generate_openapi_spec_providers.py keycloak
+        entry: >-
+          ../../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py
+          shared/template_rendering
         pass_filenames: false
-        files: ^src/airflow/providers/keycloak/auth_manager/.*\.py$
+        files: ^.*\.py$
+        require_serial: true
diff --git a/shared/template_rendering/pyproject.toml b/shared/template_rendering/pyproject.toml
index 03e56b2d1b1..83ac811ce27 100644
--- a/shared/template_rendering/pyproject.toml
+++ b/shared/template_rendering/pyproject.toml
@@ -29,6 +29,10 @@ dependencies = []
 dev = [
     "apache-airflow-devel-common",
 ]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
+
 
 [build-system]
 requires = [
diff --git a/airflow-ctl-tests/.pre-commit-config.yaml b/shared/timezones/.pre-commit-config.yaml
similarity index 77%
copy from airflow-ctl-tests/.pre-commit-config.yaml
copy to shared/timezones/.pre-commit-config.yaml
index f6213b0f9a8..25c6cf6d8a5 100644
--- a/airflow-ctl-tests/.pre-commit-config.yaml
+++ b/shared/timezones/.pre-commit-config.yaml
@@ -16,17 +16,16 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
 repos:
   - repo: local
     hooks:
-      - id: check-airflowctl-command-coverage
-        name: Check airflowctl CLI command test coverage
-        entry: ../scripts/ci/prek/check_airflowctl_command_coverage.py
+      - id: mypy-shared-timezones
+        name: Run mypy for shared-timezones
         language: python
+        entry: ../../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py shared/timezones
         pass_filenames: false
-        files:
-          (?x)
-          ^tests/airflowctl_tests/.*\.py$
+        files: ^.*\.py$
+        require_serial: true
diff --git a/shared/timezones/pyproject.toml b/shared/timezones/pyproject.toml
index 7d62b3ff99b..a405c57fac6 100644
--- a/shared/timezones/pyproject.toml
+++ b/shared/timezones/pyproject.toml
@@ -32,6 +32,10 @@ dependencies = [
 dev = [
     "apache-airflow-devel-common",
 ]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
+
 
 [build-system]
 requires = [
diff --git a/shared/timezones/src/airflow_shared/timezones/timezone.py b/shared/timezones/src/airflow_shared/timezones/timezone.py
index 69898b24d0b..45b538a52a8 100644
--- a/shared/timezones/src/airflow_shared/timezones/timezone.py
+++ b/shared/timezones/src/airflow_shared/timezones/timezone.py
@@ -107,7 +107,9 @@ def make_aware(value: DateTime, timezone: dt.tzinfo | None = None) -> DateTime:
 
 
 @overload
-def make_aware(value: dt.datetime, timezone: dt.tzinfo | None = None) -> dt.datetime: ...
+def make_aware(  # type: ignore[overload-cannot-match]
+    value: dt.datetime, timezone: dt.tzinfo | None = None
+) -> dt.datetime: ...
 
 
 def make_aware(value: dt.datetime | None, timezone: dt.tzinfo | None = None) -> dt.datetime | None:
@@ -200,7 +202,9 @@ def coerce_datetime(v: DateTime, tz: dt.tzinfo | None = None) -> DateTime: ...
 
 
 @overload
-def coerce_datetime(v: dt.datetime, tz: dt.tzinfo | None = None) -> DateTime: ...
+def coerce_datetime(  # type: ignore[overload-cannot-match]
+    v: dt.datetime, tz: dt.tzinfo | None = None
+) -> DateTime: ...
 
 
 def coerce_datetime(v: dt.datetime | None, tz: dt.tzinfo | None = None) -> DateTime | None:
diff --git a/airflow-ctl-tests/.pre-commit-config.yaml b/task-sdk-integration-tests/.pre-commit-config.yaml
similarity index 76%
copy from airflow-ctl-tests/.pre-commit-config.yaml
copy to task-sdk-integration-tests/.pre-commit-config.yaml
index f6213b0f9a8..f09e0e1f6fe 100644
--- a/airflow-ctl-tests/.pre-commit-config.yaml
+++ b/task-sdk-integration-tests/.pre-commit-config.yaml
@@ -16,17 +16,16 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
 repos:
   - repo: local
     hooks:
-      - id: check-airflowctl-command-coverage
-        name: Check airflowctl CLI command test coverage
-        entry: ../scripts/ci/prek/check_airflowctl_command_coverage.py
+      - id: mypy-task-sdk-integration-tests
+        name: Run mypy for task-sdk-integration-tests
         language: python
+        entry: ../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py task-sdk-integration-tests
         pass_filenames: false
-        files:
-          (?x)
-          ^tests/airflowctl_tests/.*\.py$
+        files: ^.*\.py$
+        require_serial: true
diff --git a/task-sdk-integration-tests/pyproject.toml b/task-sdk-integration-tests/pyproject.toml
index f4364a75130..898c71dfc58 100644
--- a/task-sdk-integration-tests/pyproject.toml
+++ b/task-sdk-integration-tests/pyproject.toml
@@ -75,3 +75,8 @@ exclude = ["*"]
 
 [tool.hatch.build.targets.wheel]
 bypass-selection = true
+
+[dependency-groups]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
diff --git a/task-sdk/.pre-commit-config.yaml b/task-sdk/.pre-commit-config.yaml
index df1be38500f..aa0cefc74f1 100644
--- a/task-sdk/.pre-commit-config.yaml
+++ b/task-sdk/.pre-commit-config.yaml
@@ -16,7 +16,7 @@
 # under the License.
 ---
 default_stages: [pre-commit, pre-push]
-minimum_prek_version: '0.2.0'
+minimum_prek_version: '0.3.4'
 default_language_version:
   python: python3
   node: 22.19.0
@@ -58,7 +58,7 @@ repos:
       - id: mypy-task-sdk
         name: Run mypy for task-sdk
         language: python
-        entry: ../scripts/ci/prek/mypy_local_folder.py task-sdk
+        entry: ../scripts/ci/prek/run_mypy_full_dist_local_venv_or_breeze_in_ci.py task-sdk
         pass_filenames: false
         files: ^.*\.py$
         require_serial: true
diff --git a/task-sdk/pyproject.toml b/task-sdk/pyproject.toml
index 90dba8508d9..3b2cba7ebbf 100644
--- a/task-sdk/pyproject.toml
+++ b/task-sdk/pyproject.toml
@@ -226,6 +226,10 @@ dev = [
 docs = [
     "apache-airflow-devel-common[docs]",
 ]
+mypy = [
+    "apache-airflow-devel-common[mypy]",
+]
+
 [tool.uv.sources]
 # These names must match the names as defined in the pyproject.toml of the workspace items,
 # *not* the workspace folder paths
diff --git a/task-sdk/src/airflow/sdk/execution_time/comms.py b/task-sdk/src/airflow/sdk/execution_time/comms.py
index ab593659462..c8f22b9d5a4 100644
--- a/task-sdk/src/airflow/sdk/execution_time/comms.py
+++ b/task-sdk/src/airflow/sdk/execution_time/comms.py
@@ -133,7 +133,7 @@ def _new_encoder() -> msgspec.msgpack.Encoder:
     return msgspec.msgpack.Encoder(enc_hook=_msgpack_enc_hook)
 
 
-class _RequestFrame(msgspec.Struct, array_like=True, frozen=True, omit_defaults=True):
+class _RequestFrame(msgspec.Struct, array_like=True, frozen=True, omit_defaults=True):  # type: ignore[call-arg]
     id: int
     """
     The request id, set by the sender.
@@ -159,7 +159,7 @@ class _RequestFrame(msgspec.Struct, array_like=True, frozen=True, omit_defaults=
         return buffer
 
 
-class _ResponseFrame(_RequestFrame, frozen=True):
+class _ResponseFrame(_RequestFrame, frozen=True):  # type: ignore[call-arg]
     id: int
     """
     The id of the request this is a response to
diff --git a/uv.lock b/uv.lock
index f54143f1568..8c87e66ecd6 100644
--- a/uv.lock
+++ b/uv.lock
@@ -5,24 +5,19 @@ resolution-markers = [
     "python_full_version >= '3.14' and sys_platform == 'win32'",
     "python_full_version >= '3.14' and sys_platform == 'emscripten'",
     "python_full_version >= '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32'",
+    "(python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin') or (python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32')",
     "python_full_version == '3.13.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.13.*' and platform_machine != 'arm64') or (python_full_version == '3.13.*' and sys_platform != 'darwin')",
     "python_full_version == '3.12.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.12.*' and platform_machine != 'arm64') or (python_full_version == '3.12.*' and sys_platform != 'darwin')",
     "python_full_version == '3.11.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.11.*' and platform_machine != 'arm64') or (python_full_version == '3.11.*' and sys_platform != 'darwin')",
     "python_full_version < '3.11' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and sys_platform != 'darwin'",
+    "(python_full_version < '3.11' and platform_machine != 'arm64') or (python_full_version < '3.11' and sys_platform != 'darwin')",
 ]
 
 [options]
-exclude-newer = "2026-04-16T14:57:18.176731926Z"
+exclude-newer = "2026-04-16T15:21:28.729569834Z"
 exclude-newer-span = "P4D"
 
 [options.exclude-newer-package]
@@ -1849,6 +1844,9 @@ dev = [
 docs = [
     { name = "apache-airflow-devel-common", extra = ["docs"] },
 ]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
 
 [package.metadata]
 requires-dist = [
@@ -1949,6 +1947,7 @@ dev = [
     { name = "apache-airflow-providers-git", editable = "providers/git" },
 ]
 docs = [{ name = "apache-airflow-devel-common", extras = ["docs"], editable = "devel-common" }]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
 
 [[package]]
 name = "apache-airflow-ctl"
@@ -1985,6 +1984,9 @@ dev = [
 docs = [
     { name = "apache-airflow-devel-common", extra = ["docs"] },
 ]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
 
 [package.metadata]
 requires-dist = [
@@ -2014,6 +2016,7 @@ dev = [
     { name = "apache-airflow-devel-common", editable = "devel-common" },
 ]
 docs = [{ name = "apache-airflow-devel-common", extras = ["docs"], editable = "devel-common" }]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
 
 [[package]]
 name = "apache-airflow-ctl-tests"
@@ -2024,12 +2027,20 @@ dependencies = [
     { name = "apache-airflow-devel-common" },
 ]
 
+[package.dev-dependencies]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
+
 [package.metadata]
 requires-dist = [
     { name = "apache-airflow-ctl", editable = "airflow-ctl" },
     { name = "apache-airflow-devel-common", editable = "devel-common" },
 ]
 
+[package.metadata.requires-dev]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
+
 [[package]]
 name = "apache-airflow-dev"
 version = "0.0.1"
@@ -2053,6 +2064,11 @@ dependencies = [
     { name = "tabulate" },
 ]
 
+[package.dev-dependencies]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
+
 [package.metadata]
 requires-dist = [
     { name = "beautifulsoup4", specifier = ">=4.12.0" },
@@ -2073,6 +2089,9 @@ requires-dist = [
     { name = "tabulate", specifier = ">=0.9.0" },
 ]
 
+[package.metadata.requires-dev]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
+
 [[package]]
 name = "apache-airflow-devel-common"
 version = "0.1.0"
@@ -2384,6 +2403,9 @@ docs = [
 docs-gen = [
     { name = "apache-airflow-devel-common", extra = ["docs-gen"] },
 ]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
 
 [package.metadata]
 requires-dist = [
@@ -2489,6 +2511,7 @@ provides-extras = ["all", "basic", "coverage", "duckdb", "debuggers", "devscript
 dev = [{ name = "apache-airflow-core", editable = "airflow-core" }]
 docs = [{ name = "apache-airflow-devel-common", extras = ["docs"], editable = "devel-common" }]
 docs-gen = [{ name = "apache-airflow-devel-common", extras = ["docs-gen"], editable = "devel-common" }]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
 
 [[package]]
 name = "apache-airflow-docker-tests"
@@ -2498,9 +2521,17 @@ dependencies = [
     { name = "apache-airflow-devel-common" },
 ]
 
+[package.dev-dependencies]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
+
 [package.metadata]
 requires-dist = [{ name = "apache-airflow-devel-common", editable = "devel-common" }]
 
+[package.metadata.requires-dev]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
+
 [[package]]
 name = "apache-airflow-e2e-tests"
 version = "0.0.1"
@@ -2512,6 +2543,11 @@ dependencies = [
     { name = "testcontainers" },
 ]
 
+[package.dev-dependencies]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
+
 [package.metadata]
 requires-dist = [
     { name = "apache-airflow-core", editable = "airflow-core" },
@@ -2520,6 +2556,9 @@ requires-dist = [
     { name = "testcontainers", specifier = ">=4.12.0" },
 ]
 
+[package.metadata.requires-dev]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
+
 [[package]]
 name = "apache-airflow-helm-tests"
 version = "0.0.1"
@@ -2529,12 +2568,20 @@ dependencies = [
     { name = "apache-airflow-providers-cncf-kubernetes" },
 ]
 
+[package.dev-dependencies]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
+
 [package.metadata]
 requires-dist = [
     { name = "apache-airflow-devel-common", editable = "devel-common" },
     { name = "apache-airflow-providers-cncf-kubernetes", editable = "providers/cncf/kubernetes" },
 ]
 
+[package.metadata.requires-dev]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
+
 [[package]]
 name = "apache-airflow-kubernetes-tests"
 version = "0.0.1"
@@ -2549,6 +2596,11 @@ dependencies = [
     { name = "urllib3" },
 ]
 
+[package.dev-dependencies]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
+
 [package.metadata]
 requires-dist = [
     { name = "apache-airflow-core", editable = "airflow-core" },
@@ -2560,6 +2612,9 @@ requires-dist = [
     { name = "urllib3", specifier = ">=2.1.0,!=2.6.0" },
 ]
 
+[package.metadata.requires-dev]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
+
 [[package]]
 name = "apache-airflow-providers"
 version = "0.0.1"
@@ -5486,8 +5541,8 @@ dependencies = [
     { name = "apache-airflow-providers-common-compat" },
     { name = "apache-airflow-providers-common-sql" },
     { name = "jaydebeapi" },
-    { name = "jpype1", version = "1.6.0", source = { registry = "https://pypi.org/simple" }, marker = "sys_platform == 'darwin'" },
-    { name = "jpype1", version = "1.7.0", source = { registry = "https://pypi.org/simple" }, marker = "sys_platform != 'darwin'" },
+    { name = "jpype1", version = "1.6.0", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine == 'arm64' and sys_platform == 'darwin'" },
+    { name = "jpype1", version = "1.7.0", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine != 'arm64' or sys_platform != 'darwin'" },
 ]
 
 [package.dev-dependencies]
@@ -7732,6 +7787,9 @@ dependencies = [
 dev = [
     { name = "apache-airflow-devel-common" },
 ]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
 
 [package.metadata]
 requires-dist = [
@@ -7751,6 +7809,7 @@ requires-dist = [
 
 [package.metadata.requires-dev]
 dev = [{ name = "apache-airflow-devel-common", editable = "devel-common" }]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
 
 [[package]]
 name = "apache-airflow-shared-configuration"
@@ -7768,6 +7827,9 @@ dev = [
     { name = "apache-airflow-devel-common" },
     { name = "apache-airflow-shared-module-loading" },
 ]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
 
 [package.metadata]
 requires-dist = [
@@ -7782,6 +7844,7 @@ dev = [
     { name = "apache-airflow-devel-common", editable = "devel-common" },
     { name = "apache-airflow-shared-module-loading", editable = "shared/module_loading" },
 ]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
 
 [[package]]
 name = "apache-airflow-shared-dagnode"
@@ -7795,12 +7858,16 @@ dependencies = [
 dev = [
     { name = "apache-airflow-devel-common" },
 ]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
 
 [package.metadata]
 requires-dist = [{ name = "structlog", specifier = ">=25.4.0" }]
 
 [package.metadata.requires-dev]
 dev = [{ name = "apache-airflow-devel-common", editable = "devel-common" }]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
 
 [[package]]
 name = "apache-airflow-shared-listeners"
@@ -7815,6 +7882,9 @@ dependencies = [
 dev = [
     { name = "apache-airflow-devel-common" },
 ]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
 
 [package.metadata]
 requires-dist = [
@@ -7824,6 +7894,7 @@ requires-dist = [
 
 [package.metadata.requires-dev]
 dev = [{ name = "apache-airflow-devel-common", editable = "devel-common" }]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
 
 [[package]]
 name = "apache-airflow-shared-logging"
@@ -7839,6 +7910,9 @@ dependencies = [
 dev = [
     { name = "apache-airflow-devel-common" },
 ]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
 
 [package.metadata]
 requires-dist = [
@@ -7849,6 +7923,7 @@ requires-dist = [
 
 [package.metadata.requires-dev]
 dev = [{ name = "apache-airflow-devel-common", editable = "devel-common" }]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
 
 [[package]]
 name = "apache-airflow-shared-module-loading"
@@ -7863,6 +7938,9 @@ dependencies = [
 dev = [
     { name = "apache-airflow-devel-common" },
 ]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
 
 [package.metadata]
 requires-dist = [
@@ -7872,6 +7950,7 @@ requires-dist = [
 
 [package.metadata.requires-dev]
 dev = [{ name = "apache-airflow-devel-common", editable = "devel-common" }]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
 
 [[package]]
 name = "apache-airflow-shared-observability"
@@ -7909,6 +7988,9 @@ dev = [
     { name = "apache-airflow-devel-common" },
     { name = "apache-airflow-shared-observability", extra = ["all"] },
 ]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
 
 [package.metadata]
 requires-dist = [
@@ -7930,6 +8012,7 @@ dev = [
     { name = "apache-airflow-devel-common", editable = "devel-common" },
     { name = "apache-airflow-shared-observability", extras = ["all"], editable = "shared/observability" },
 ]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
 
 [[package]]
 name = "apache-airflow-shared-plugins-manager"
@@ -7947,6 +8030,9 @@ dev = [
     { name = "apache-airflow-shared-listeners" },
     { name = "apache-airflow-shared-module-loading" },
 ]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
 
 [package.metadata]
 requires-dist = [
@@ -7962,6 +8048,7 @@ dev = [
     { name = "apache-airflow-shared-listeners", editable = "shared/listeners" },
     { name = "apache-airflow-shared-module-loading", editable = "shared/module_loading" },
 ]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
 
 [[package]]
 name = "apache-airflow-shared-providers-discovery"
@@ -7982,6 +8069,9 @@ dev = [
     { name = "apache-airflow-devel-common" },
     { name = "apache-airflow-shared-module-loading" },
 ]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
 
 [package.metadata]
 requires-dist = [
@@ -8000,6 +8090,7 @@ dev = [
     { name = "apache-airflow-devel-common", editable = "devel-common" },
     { name = "apache-airflow-shared-module-loading", editable = "shared/module_loading" },
 ]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
 
 [[package]]
 name = "apache-airflow-shared-secrets-backend"
@@ -8010,11 +8101,15 @@ source = { editable = "shared/secrets_backend" }
 dev = [
     { name = "apache-airflow-devel-common" },
 ]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
 
 [package.metadata]
 
 [package.metadata.requires-dev]
 dev = [{ name = "apache-airflow-devel-common", editable = "devel-common" }]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
 
 [[package]]
 name = "apache-airflow-shared-secrets-masker"
@@ -8031,6 +8126,9 @@ dependencies = [
 dev = [
     { name = "apache-airflow-devel-common" },
 ]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
 
 [package.metadata]
 requires-dist = [
@@ -8042,6 +8140,7 @@ requires-dist = [
 
 [package.metadata.requires-dev]
 dev = [{ name = "apache-airflow-devel-common", editable = "devel-common" }]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
 
 [[package]]
 name = "apache-airflow-shared-serialization"
@@ -8052,11 +8151,15 @@ source = { editable = "shared/serialization" }
 dev = [
     { name = "apache-airflow-devel-common" },
 ]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
 
 [package.metadata]
 
 [package.metadata.requires-dev]
 dev = [{ name = "apache-airflow-devel-common", editable = "devel-common" }]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
 
 [[package]]
 name = "apache-airflow-shared-template-rendering"
@@ -8067,11 +8170,15 @@ source = { editable = "shared/template_rendering" }
 dev = [
     { name = "apache-airflow-devel-common" },
 ]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
 
 [package.metadata]
 
 [package.metadata.requires-dev]
 dev = [{ name = "apache-airflow-devel-common", editable = "devel-common" }]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
 
 [[package]]
 name = "apache-airflow-shared-timezones"
@@ -8086,6 +8193,9 @@ dependencies = [
 dev = [
     { name = "apache-airflow-devel-common" },
 ]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
 
 [package.metadata]
 requires-dist = [
@@ -8095,6 +8205,7 @@ requires-dist = [
 
 [package.metadata.requires-dev]
 dev = [{ name = "apache-airflow-devel-common", editable = "devel-common" }]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
 
 [[package]]
 name = "apache-airflow-task-sdk"
@@ -8166,6 +8277,9 @@ dev = [
 docs = [
     { name = "apache-airflow-devel-common", extra = ["docs"] },
 ]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
 
 [package.metadata]
 requires-dist = [
@@ -8225,6 +8339,7 @@ dev = [
     { name = "pandas", marker = "python_full_version >= '3.14'", specifier = ">=2.3.3" },
 ]
 docs = [{ name = "apache-airflow-devel-common", extras = ["docs"], editable = "devel-common" }]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
 
 [[package]]
 name = "apache-airflow-task-sdk-integration-tests"
@@ -8235,12 +8350,20 @@ dependencies = [
     { name = "apache-airflow-devel-common" },
 ]
 
+[package.dev-dependencies]
+mypy = [
+    { name = "apache-airflow-devel-common", extra = ["mypy"] },
+]
+
 [package.metadata]
 requires-dist = [
     { name = "apache-airflow-core", editable = "airflow-core" },
     { name = "apache-airflow-devel-common", editable = "devel-common" },
 ]
 
+[package.metadata.requires-dev]
+mypy = [{ name = "apache-airflow-devel-common", extras = ["mypy"], editable = "devel-common" }]
+
 [[package]]
 name = "apispec"
 version = "6.10.0"
@@ -9847,17 +9970,13 @@ version = "3.1.1"
 source = { registry = "https://pypi.org/simple" }
 resolution-markers = [
     "python_full_version == '3.13.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.13.*' and platform_machine != 'arm64') or (python_full_version == '3.13.*' and sys_platform != 'darwin')",
     "python_full_version == '3.12.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.12.*' and platform_machine != 'arm64') or (python_full_version == '3.12.*' and sys_platform != 'darwin')",
     "python_full_version == '3.11.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.11.*' and platform_machine != 'arm64') or (python_full_version == '3.11.*' and sys_platform != 'darwin')",
     "python_full_version < '3.11' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and sys_platform != 'darwin'",
+    "(python_full_version < '3.11' and platform_machine != 'arm64') or (python_full_version < '3.11' and sys_platform != 'darwin')",
 ]
 sdist = { url = "https://files.pythonhosted.org/packages/52/39/069100b84d7418bc358d81669d5748efb14b9cceacd2f9c75f550424132f/cloudpickle-3.1.1.tar.gz", hash = "sha256:b216fa8ae4019d5482a8ac3c95d8f6346115d8835911fd4aefd1a445e4242c64", size = 22113, upload-time = "2025-01-14T17:02:05.085Z" }
 wheels = [
@@ -9872,8 +9991,7 @@ resolution-markers = [
     "python_full_version >= '3.14' and sys_platform == 'win32'",
     "python_full_version >= '3.14' and sys_platform == 'emscripten'",
     "python_full_version >= '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32'",
+    "(python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin') or (python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32')",
 ]
 sdist = { url = "https://files.pythonhosted.org/packages/27/fb/576f067976d320f5f0114a8d9fa1215425441bb35627b1993e5afd8111e5/cloudpickle-3.1.2.tar.gz", hash = "sha256:7fda9eb655c9c230dab534f1983763de5835249750e85fbcef43aaa30a9a2414", size = 22330, upload-time = "2025-11-03T09:25:26.604Z" }
 wheels = [
@@ -10539,8 +10657,7 @@ version = "0.21.2"
 source = { registry = "https://pypi.org/simple" }
 resolution-markers = [
     "python_full_version < '3.11' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and sys_platform != 'darwin'",
+    "(python_full_version < '3.11' and platform_machine != 'arm64') or (python_full_version < '3.11' and sys_platform != 'darwin')",
 ]
 sdist = { url = "https://files.pythonhosted.org/packages/ae/ed/aefcc8cd0ba62a0560c3c18c33925362d46c6075480bfa4df87b28e169a9/docutils-0.21.2.tar.gz", hash = "sha256:3a6b18732edf182daa3cd12775bbb338cf5691468f91eeeb109deff6ebfa986f", size = 2204444, upload-time = "2024-04-23T18:57:18.24Z" }
 wheels = [
@@ -10555,17 +10672,13 @@ resolution-markers = [
     "python_full_version >= '3.14' and sys_platform == 'win32'",
     "python_full_version >= '3.14' and sys_platform == 'emscripten'",
     "python_full_version >= '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32'",
+    "(python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin') or (python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32')",
     "python_full_version == '3.13.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.13.*' and platform_machine != 'arm64') or (python_full_version == '3.13.*' and sys_platform != 'darwin')",
     "python_full_version == '3.12.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.12.*' and platform_machine != 'arm64') or (python_full_version == '3.12.*' and sys_platform != 'darwin')",
     "python_full_version == '3.11.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.11.*' and platform_machine != 'arm64') or (python_full_version == '3.11.*' and sys_platform != 'darwin')",
 ]
 sdist = { url = "https://files.pythonhosted.org/packages/ae/b6/03bb70946330e88ffec97aefd3ea75ba575cb2e762061e0e62a213befee8/docutils-0.22.4.tar.gz", hash = "sha256:4db53b1fde9abecbb74d91230d32ab626d94f6badfc575d6db9194a49df29968", size = 2291750, upload-time = "2025-12-18T19:00:26.443Z" }
 wheels = [
@@ -13406,8 +13519,7 @@ version = "8.39.0"
 source = { registry = "https://pypi.org/simple" }
 resolution-markers = [
     "python_full_version < '3.11' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and sys_platform != 'darwin'",
+    "(python_full_version < '3.11' and platform_machine != 'arm64') or (python_full_version < '3.11' and sys_platform != 'darwin')",
 ]
 dependencies = [
     { name = "colorama", marker = "python_full_version < '3.11' and sys_platform == 'win32'" },
@@ -13433,8 +13545,7 @@ version = "9.10.1"
 source = { registry = "https://pypi.org/simple" }
 resolution-markers = [
     "python_full_version == '3.11.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.11.*' and platform_machine != 'arm64') or (python_full_version == '3.11.*' and sys_platform != 'darwin')",
 ]
 dependencies = [
     { name = "colorama", marker = "python_full_version == '3.11.*' and sys_platform == 'win32'" },
@@ -13462,14 +13573,11 @@ resolution-markers = [
     "python_full_version >= '3.14' and sys_platform == 'win32'",
     "python_full_version >= '3.14' and sys_platform == 'emscripten'",
     "python_full_version >= '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32'",
+    "(python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin') or (python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32')",
     "python_full_version == '3.13.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.13.*' and platform_machine != 'arm64') or (python_full_version == '3.13.*' and sys_platform != 'darwin')",
     "python_full_version == '3.12.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.12.*' and platform_machine != 'arm64') or (python_full_version == '3.12.*' and sys_platform != 'darwin')",
 ]
 dependencies = [
     { name = "colorama", marker = "python_full_version >= '3.12' and sys_platform == 'win32'" },
@@ -13568,8 +13676,8 @@ name = "jaydebeapi"
 version = "1.2.3"
 source = { registry = "https://pypi.org/simple" }
 dependencies = [
-    { name = "jpype1", version = "1.6.0", source = { registry = "https://pypi.org/simple" }, marker = "platform_python_implementation != 'Jython' and sys_platform == 'darwin'" },
-    { name = "jpype1", version = "1.7.0", source = { registry = "https://pypi.org/simple" }, marker = "platform_python_implementation != 'Jython' and sys_platform != 'darwin'" },
+    { name = "jpype1", version = "1.6.0", source = { registry = "https://pypi.org/simple" }, marker = "platform_machine == 'arm64' and platform_python_implementation != 'Jython' and sys_platform == 'darwin'" },
+    { name = "jpype1", version = "1.7.0", source = { registry = "https://pypi.org/simple" }, marker = "(platform_machine != 'arm64' and platform_python_implementation != 'Jython') or (platform_python_implementation != 'Jython' and sys_platform != 'darwin')" },
 ]
 sdist = { url = "https://files.pythonhosted.org/packages/5c/8c/f27750106bf1fba33f92d83fb866af164179f7046495bc5a61fae26d9475/JayDeBeApi-1.2.3.tar.gz", hash = "sha256:f25e9307fbb5960cb035394c26e37731b64cc465b197c4344cee85ec450ab92f", size = 32929, upload-time = "2020-06-12T07:03:27.204Z" }
 wheels = [
@@ -13748,18 +13856,13 @@ version = "1.6.0"
 source = { registry = "https://pypi.org/simple" }
 resolution-markers = [
     "python_full_version >= '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin'",
     "python_full_version == '3.13.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
     "python_full_version == '3.12.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
     "python_full_version == '3.11.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
     "python_full_version < '3.11' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and platform_machine != 'arm64' and sys_platform == 'darwin'",
 ]
 dependencies = [
-    { name = "packaging", marker = "sys_platform == 'darwin'" },
+    { name = "packaging", marker = "platform_machine == 'arm64' and sys_platform == 'darwin'" },
 ]
 sdist = { url = "https://files.pythonhosted.org/packages/34/49/6090a131d84b22c6aae13b1853092028b060fd17da1af87c0e42ad69d50f/jpype1-1.6.0.tar.gz", hash = "sha256:2d46b2a14f8f0e6f17d8aa22b4fc3a64b2790851ebf1409ad79a37c698fd6e9a", size = 1057888, upload-time = "2025-07-07T14:04:11.244Z" }
 wheels = [
@@ -13776,29 +13879,33 @@ source = { registry = "https://pypi.org/simple" }
 resolution-markers = [
     "python_full_version >= '3.14' and sys_platform == 'win32'",
     "python_full_version >= '3.14' and sys_platform == 'emscripten'",
-    "python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32'",
-    "python_full_version == '3.13.*' and sys_platform != 'darwin'",
-    "python_full_version == '3.12.*' and sys_platform != 'darwin'",
-    "python_full_version == '3.11.*' and sys_platform != 'darwin'",
-    "python_full_version < '3.11' and sys_platform != 'darwin'",
+    "(python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin') or (python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32')",
+    "(python_full_version == '3.13.*' and platform_machine != 'arm64') or (python_full_version == '3.13.*' and sys_platform != 'darwin')",
+    "(python_full_version == '3.12.*' and platform_machine != 'arm64') or (python_full_version == '3.12.*' and sys_platform != 'darwin')",
+    "(python_full_version == '3.11.*' and platform_machine != 'arm64') or (python_full_version == '3.11.*' and sys_platform != 'darwin')",
+    "(python_full_version < '3.11' and platform_machine != 'arm64') or (python_full_version < '3.11' and sys_platform != 'darwin')",
 ]
 dependencies = [
-    { name = "packaging", marker = "sys_platform != 'darwin'" },
+    { name = "packaging", marker = "platform_machine != 'arm64' or sys_platform != 'darwin'" },
 ]
 sdist = { url = "https://files.pythonhosted.org/packages/ff/b3/a95951c2d967ca5e61f50d96549f528193315c2e2f38817bfbe214cc162d/jpype1-1.7.0.tar.gz", hash = "sha256:2109138b7264f6360c717b887b6a4d20b29e997c516e8d7fa8756e40595bb537", size = 782128, upload-time = "2026-04-09T22:18:53.873Z" }
 wheels = [
+    { url = "https://files.pythonhosted.org/packages/01/4c/0ac784fe2ef4dce88cda18969d08dd584709279861367b79d0738a9bda9c/jpype1-1.7.0-cp310-cp310-macosx_14_0_x86_64.whl", hash = "sha256:fffa7228d25efd00ff75df5192d69ec8674d2aaa51b48e60871bc07bb151afb0", size = 375246, upload-time = "2026-04-09T22:17:57.324Z" },
     { url = "https://files.pythonhosted.org/packages/20/55/a06cb7fdc9b025b203fdd9ade1f5b649e743f02dce0806cd93aa7bbda32b/jpype1-1.7.0-cp310-cp310-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8b109abef2dc94f159828f15e161a83ef2243ca45a0c23c311de7679e62bd664", size = 407739, upload-time = "2026-04-09T22:17:59.713Z" },
     { url = "https://files.pythonhosted.org/packages/79/93/4101a487aece26cac567b23daca9627876d459e46486b79649254f8d47c8/jpype1-1.7.0-cp310-cp310-manylinux_2_24_i686.manylinux_2_28_i686.whl", hash = "sha256:51275f9f25cd431bec65aaa752806521e3abd19ad3ac29e1de35ec216697e615", size = 454431, upload-time = "2026-04-09T22:18:01.561Z" },
     { url = "https://files.pythonhosted.org/packages/32/f5/5005e0ca4b222bfdd7e24814dbfbb6b6a0b93b65a21506e7ed79a3134c2f/jpype1-1.7.0-cp310-cp310-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e1baea397292698579d69207df1b23f4261c6814c90f91081359f4aff958b804", size = 438987, upload-time = "2026-04-09T22:18:03.425Z" },
     { url = "https://files.pythonhosted.org/packages/df/0c/51bd6e0ec919bcadca0074e6e90c5b725e6989f3d00d809c5175d160261f/jpype1-1.7.0-cp310-cp310-win_amd64.whl", hash = "sha256:280fe6aecf086c1d311dff008c1b0129d7197940a6871ea845dc6a5f8b3319a0", size = 357687, upload-time = "2026-04-09T22:18:05.035Z" },
+    { url = "https://files.pythonhosted.org/packages/78/c8/9613746ac28b4a1c5ec3871b9e56297493ac586d56c61b93724fc1a0cd36/jpype1-1.7.0-cp311-cp311-macosx_14_0_x86_64.whl", hash = "sha256:83486bd4629f40386ae6557311e7baca89bb9f2b70c2210d16bcdfafe1ac812c", size = 375265, upload-time = "2026-04-09T22:18:07.084Z" },
     { url = "https://files.pythonhosted.org/packages/46/05/4052f15ce9d5d8a82a9a8537454119acfaf6dfcc42595f75ca6a366bf227/jpype1-1.7.0-cp311-cp311-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:9b248d080a3a95249a2aad3ce53f9b56f84916d1bdc01df18b06c152deb12b8d", size = 407735, upload-time = "2026-04-09T22:18:09.641Z" },
     { url = "https://files.pythonhosted.org/packages/66/bd/a75f8309d98efebd4dfea57c4009d0f86834dac4eeaa8bd6d2c9db37b468/jpype1-1.7.0-cp311-cp311-manylinux_2_24_i686.manylinux_2_28_i686.whl", hash = "sha256:9198e7a87f6afd7c6953df23ea0eab424b0a30ec103ca91104082b075e0e11c5", size = 454398, upload-time = "2026-04-09T22:18:11.871Z" },
     { url = "https://files.pythonhosted.org/packages/13/21/63fea3b7b18c929c85ab29b6b5cafc9909f6fca8361b4442b26da177f87f/jpype1-1.7.0-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b042813690e68cec1611e10982bf3e496cf47754e681abd8c3342be0aa97a802", size = 438963, upload-time = "2026-04-09T22:18:13.764Z" },
     { url = "https://files.pythonhosted.org/packages/cf/5d/d6331ad2350f10451cb9082ea3cf0dee63be2e7246c74998a9de57e3fdc6/jpype1-1.7.0-cp311-cp311-win_amd64.whl", hash = "sha256:1d1f5b67eade4ef21e0e9f184034e47aee1e349eebb55ab97078219a50cf1e9c", size = 357721, upload-time = "2026-04-09T22:18:15.499Z" },
+    { url = "https://files.pythonhosted.org/packages/39/87/7512ac8d3d2499f8fb23611d6d870189da609683239e50fa961ea82edf0a/jpype1-1.7.0-cp312-cp312-macosx_14_0_x86_64.whl", hash = "sha256:ce9a4addeb0494da774ae5ef7284f1f2eb52e05842d6700aa21988e2b50b2b88", size = 374171, upload-time = "2026-04-09T22:18:17.731Z" },
     { url = "https://files.pythonhosted.org/packages/9e/9e/2544fabe521f969258bb532bc82d54cf2d799c5d93fd97f7453496ff3936/jpype1-1.7.0-cp312-cp312-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:10d81fe60d4c37b3dc175e3ca2a08b7f655f8854d117a74d190e66f10833adcc", size = 406974, upload-time = "2026-04-09T22:18:19.896Z" },
     { url = "https://files.pythonhosted.org/packages/0f/f2/03763b0e7ff5038307a919c4bcd629fba398f48472876b974db7d7f5a31e/jpype1-1.7.0-cp312-cp312-manylinux_2_24_i686.manylinux_2_28_i686.whl", hash = "sha256:e3c4befd919f05e23e0a4245af2bc188771bc8daff5041d544ae29f467976a29", size = 453801, upload-time = "2026-04-09T22:18:21.706Z" },
     { url = "https://files.pythonhosted.org/packages/37/d5/56214f4a93943d6786e7b024b8c07cfbc36df20c79ed520bf1db0053c780/jpype1-1.7.0-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5ee5d72fee3b39e2e339adf3c4344d01d4473e10fbc4a3bb7d79ac06a8426da0", size = 437982, upload-time = "2026-04-09T22:18:23.58Z" },
     { url = "https://files.pythonhosted.org/packages/8e/d1/64671f546467ba3733f7824d9728d03a563024a83ee6037a8b0a4c255710/jpype1-1.7.0-cp312-cp312-win_amd64.whl", hash = "sha256:22ddcf4b8616b3ef54ac666a484f8238a921ab3f435d066de724a9705c2eeb84", size = 356788, upload-time = "2026-04-09T22:18:25.606Z" },
+    { url = "https://files.pythonhosted.org/packages/43/8d/1c15575ae2d3a5e7da2515886b4c411eef3a4f079003e1fdbb5b5a8052c4/jpype1-1.7.0-cp313-cp313-macosx_14_0_x86_64.whl", hash = "sha256:74d6a88a84f0ad44f5962119a3e9c7876bfed2b5385804ff1f755620849b5aaf", size = 374362, upload-time = "2026-04-09T22:18:27.174Z" },
     { url = "https://files.pythonhosted.org/packages/4b/e7/c1259ad95eaa29385d1407d8dc8ccff063de5cdb8054445ee7c4b2f77321/jpype1-1.7.0-cp313-cp313-manylinux_2_24_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:783251ea09387efb490405ffeeccde167b30f12375f94ffc5db0ccb79f276a25", size = 407130, upload-time = "2026-04-09T22:18:29.42Z" },
     { url = "https://files.pythonhosted.org/packages/5a/4e/65220f2e27df18c1f8696343436a9e3645beaee073f80c4a17fa8fd542ac/jpype1-1.7.0-cp313-cp313-manylinux_2_24_i686.manylinux_2_28_i686.whl", hash = "sha256:28bbcf8532cfe71507d2ec4416f7387db7d7ee631ddf820e8c6ad559167d9abb", size = 453893, upload-time = "2026-04-09T22:18:31.257Z" },
     { url = "https://files.pythonhosted.org/packages/a0/00/5991cbdf56898459f79817c0d91f1957c094d0805c0815e26c38f8fc39b3/jpype1-1.7.0-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:b9b22b58becd92cc899a88298a5b06b001a1988147c37c4fee503415a7cb5539", size = 438095, upload-time = "2026-04-09T22:18:33.393Z" },
@@ -15658,8 +15765,7 @@ version = "3.4.2"
 source = { registry = "https://pypi.org/simple" }
 resolution-markers = [
     "python_full_version < '3.11' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and sys_platform != 'darwin'",
+    "(python_full_version < '3.11' and platform_machine != 'arm64') or (python_full_version < '3.11' and sys_platform != 'darwin')",
 ]
 sdist = { url = "https://files.pythonhosted.org/packages/fd/1d/06475e1cd5264c0b870ea2cc6fdb3e37177c1e565c43f56ff17a10e3937f/networkx-3.4.2.tar.gz", hash = "sha256:307c3669428c5362aab27c8a1260aa8f47c4e91d3891f48be0141738d8d053e1", size = 2151368, upload-time = "2024-10-21T12:39:38.695Z" }
 wheels = [
@@ -15674,17 +15780,13 @@ resolution-markers = [
     "python_full_version >= '3.14' and sys_platform == 'win32'",
     "python_full_version >= '3.14' and sys_platform == 'emscripten'",
     "python_full_version >= '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32'",
+    "(python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin') or (python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32')",
     "python_full_version == '3.13.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.13.*' and platform_machine != 'arm64') or (python_full_version == '3.13.*' and sys_platform != 'darwin')",
     "python_full_version == '3.12.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.12.*' and platform_machine != 'arm64') or (python_full_version == '3.12.*' and sys_platform != 'darwin')",
     "python_full_version == '3.11.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.11.*' and platform_machine != 'arm64') or (python_full_version == '3.11.*' and sys_platform != 'darwin')",
 ]
 sdist = { url = "https://files.pythonhosted.org/packages/6a/51/63fe664f3908c97be9d2e4f1158eb633317598cfa6e1fc14af5383f17512/networkx-3.6.1.tar.gz", hash = "sha256:26b7c357accc0c8cde558ad486283728b65b6a95d85ee1cd66bafab4c8168509", size = 2517025, upload-time = "2025-12-08T17:02:39.908Z" }
 wheels = [
@@ -15740,8 +15842,7 @@ version = "2.2.6"
 source = { registry = "https://pypi.org/simple" }
 resolution-markers = [
     "python_full_version < '3.11' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and sys_platform != 'darwin'",
+    "(python_full_version < '3.11' and platform_machine != 'arm64') or (python_full_version < '3.11' and sys_platform != 'darwin')",
 ]
 sdist = { url = "https://files.pythonhosted.org/packages/76/21/7d2a95e4bba9dc13d043ee156a356c0a8f0c6309dff6b21b4d71a073b8a8/numpy-2.2.6.tar.gz", hash = "sha256:e29554e2bef54a90aa5cc07da6ce955accb83f21ab5de01a62c8478897b264fd", size = 20276440, upload-time = "2025-05-17T22:38:04.611Z" }
 wheels = [
@@ -15809,17 +15910,13 @@ resolution-markers = [
     "python_full_version >= '3.14' and sys_platform == 'win32'",
     "python_full_version >= '3.14' and sys_platform == 'emscripten'",
     "python_full_version >= '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32'",
+    "(python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin') or (python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32')",
     "python_full_version == '3.13.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.13.*' and platform_machine != 'arm64') or (python_full_version == '3.13.*' and sys_platform != 'darwin')",
     "python_full_version == '3.12.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.12.*' and platform_machine != 'arm64') or (python_full_version == '3.12.*' and sys_platform != 'darwin')",
     "python_full_version == '3.11.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.11.*' and platform_machine != 'arm64') or (python_full_version == '3.11.*' and sys_platform != 'darwin')",
 ]
 sdist = { url = "https://files.pythonhosted.org/packages/d7/9f/b8cef5bffa569759033adda9481211426f12f53299629b410340795c2514/numpy-2.4.4.tar.gz", hash = "sha256:2d390634c5182175533585cc89f3608a4682ccb173cc9bb940b2881c8d6f8fa0", size = 20731587, upload-time = "2026-03-29T13:22:01.298Z" }
 wheels = [
@@ -16526,8 +16623,7 @@ version = "2.3.3.260113"
 source = { registry = "https://pypi.org/simple" }
 resolution-markers = [
     "python_full_version < '3.11' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and sys_platform != 'darwin'",
+    "(python_full_version < '3.11' and platform_machine != 'arm64') or (python_full_version < '3.11' and sys_platform != 'darwin')",
 ]
 dependencies = [
     { name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
@@ -16546,17 +16642,13 @@ resolution-markers = [
     "python_full_version >= '3.14' and sys_platform == 'win32'",
     "python_full_version >= '3.14' and sys_platform == 'emscripten'",
     "python_full_version >= '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32'",
+    "(python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin') or (python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32')",
     "python_full_version == '3.13.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.13.*' and platform_machine != 'arm64') or (python_full_version == '3.13.*' and sys_platform != 'darwin')",
     "python_full_version == '3.12.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.12.*' and platform_machine != 'arm64') or (python_full_version == '3.12.*' and sys_platform != 'darwin')",
     "python_full_version == '3.11.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.11.*' and platform_machine != 'arm64') or (python_full_version == '3.11.*' and sys_platform != 'darwin')",
 ]
 dependencies = [
     { name = "numpy", version = "2.4.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
@@ -19650,8 +19742,7 @@ version = "1.5.2"
 source = { registry = "https://pypi.org/simple" }
 resolution-markers = [
     "python_full_version < '3.11' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and sys_platform != 'darwin'",
+    "(python_full_version < '3.11' and platform_machine != 'arm64') or (python_full_version < '3.11' and sys_platform != 'darwin')",
 ]
 dependencies = [
     { name = "joblib", marker = "python_full_version < '3.11'" },
@@ -19691,17 +19782,13 @@ resolution-markers = [
     "python_full_version >= '3.14' and sys_platform == 'win32'",
     "python_full_version >= '3.14' and sys_platform == 'emscripten'",
     "python_full_version >= '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32'",
+    "(python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin') or (python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32')",
     "python_full_version == '3.13.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.13.*' and platform_machine != 'arm64') or (python_full_version == '3.13.*' and sys_platform != 'darwin')",
     "python_full_version == '3.12.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.12.*' and platform_machine != 'arm64') or (python_full_version == '3.12.*' and sys_platform != 'darwin')",
     "python_full_version == '3.11.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.11.*' and platform_machine != 'arm64') or (python_full_version == '3.11.*' and sys_platform != 'darwin')",
 ]
 dependencies = [
     { name = "joblib", marker = "python_full_version >= '3.11'" },
@@ -19755,8 +19842,7 @@ version = "1.15.3"
 source = { registry = "https://pypi.org/simple" }
 resolution-markers = [
     "python_full_version < '3.11' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and sys_platform != 'darwin'",
+    "(python_full_version < '3.11' and platform_machine != 'arm64') or (python_full_version < '3.11' and sys_platform != 'darwin')",
 ]
 dependencies = [
     { name = "numpy", version = "2.2.6", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
@@ -19818,17 +19904,13 @@ resolution-markers = [
     "python_full_version >= '3.14' and sys_platform == 'win32'",
     "python_full_version >= '3.14' and sys_platform == 'emscripten'",
     "python_full_version >= '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32'",
+    "(python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin') or (python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32')",
     "python_full_version == '3.13.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.13.*' and platform_machine != 'arm64') or (python_full_version == '3.13.*' and sys_platform != 'darwin')",
     "python_full_version == '3.12.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.12.*' and platform_machine != 'arm64') or (python_full_version == '3.12.*' and sys_platform != 'darwin')",
     "python_full_version == '3.11.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.11.*' and platform_machine != 'arm64') or (python_full_version == '3.11.*' and sys_platform != 'darwin')",
 ]
 dependencies = [
     { name = "numpy", version = "2.4.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version >= '3.11'" },
@@ -19937,8 +20019,8 @@ name = "secretstorage"
 version = "3.5.0"
 source = { registry = "https://pypi.org/simple" }
 dependencies = [
-    { name = "cryptography", marker = "(python_full_version < '3.14' and sys_platform == 'emscripten') or (python_full_version < '3.14' and sys_platform == 'win32') or (sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32')" },
-    { name = "jeepney", marker = "(python_full_version < '3.14' and sys_platform == 'emscripten') or (python_full_version < '3.14' and sys_platform == 'win32') or (sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32')" },
+    { name = "cryptography", marker = "(python_full_version < '3.14' and sys_platform == 'emscripten') or (python_full_version < '3.14' and sys_platform == 'win32') or (platform_machine != 'arm64' and sys_platform == 'darwin') or (sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32')" },
+    { name = "jeepney", marker = "(python_full_version < '3.14' and sys_platform == 'emscripten') or (python_full_version < '3.14' and sys_platform == 'win32') or (platform_machine != 'arm64' and sys_platform == 'darwin') or (sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32')" },
 ]
 sdist = { url = "https://files.pythonhosted.org/packages/1c/03/e834bcd866f2f8a49a85eaff47340affa3bfa391ee9912a952a1faa68c7b/secretstorage-3.5.0.tar.gz", hash = "sha256:f04b8e4689cbce351744d5537bf6b1329c6fc68f91fa666f60a380edddcd11be", size = 19884, upload-time = "2025-11-23T19:02:53.191Z" }
 wheels = [
@@ -19977,14 +20059,11 @@ resolution-markers = [
     "python_full_version >= '3.14' and sys_platform == 'win32'",
     "python_full_version >= '3.14' and sys_platform == 'emscripten'",
     "python_full_version >= '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32'",
+    "(python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin') or (python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32')",
     "python_full_version == '3.13.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.13.*' and platform_machine != 'arm64') or (python_full_version == '3.13.*' and sys_platform != 'darwin')",
     "python_full_version == '3.12.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.12.*' and platform_machine != 'arm64') or (python_full_version == '3.12.*' and sys_platform != 'darwin')",
 ]
 dependencies = [
     { name = "ecdsa", marker = "python_full_version >= '3.12'" },
@@ -20002,11 +20081,9 @@ version = "6.12.5"
 source = { registry = "https://pypi.org/simple" }
 resolution-markers = [
     "python_full_version == '3.11.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.11.*' and platform_machine != 'arm64') or (python_full_version == '3.11.*' and sys_platform != 'darwin')",
     "python_full_version < '3.11' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and sys_platform != 'darwin'",
+    "(python_full_version < '3.11' and platform_machine != 'arm64') or (python_full_version < '3.11' and sys_platform != 'darwin')",
 ]
 dependencies = [
     { name = "cryptography", marker = "python_full_version < '3.12'" },
@@ -20323,8 +20400,7 @@ version = "8.1.3"
 source = { registry = "https://pypi.org/simple" }
 resolution-markers = [
     "python_full_version < '3.11' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and sys_platform != 'darwin'",
+    "(python_full_version < '3.11' and platform_machine != 'arm64') or (python_full_version < '3.11' and sys_platform != 'darwin')",
 ]
 dependencies = [
     { name = "alabaster", marker = "python_full_version < '3.11'" },
@@ -20356,8 +20432,7 @@ version = "9.0.4"
 source = { registry = "https://pypi.org/simple" }
 resolution-markers = [
     "python_full_version == '3.11.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.11.*' and platform_machine != 'arm64') or (python_full_version == '3.11.*' and sys_platform != 'darwin')",
 ]
 dependencies = [
     { name = "alabaster", marker = "python_full_version == '3.11.*'" },
@@ -20391,14 +20466,11 @@ resolution-markers = [
     "python_full_version >= '3.14' and sys_platform == 'win32'",
     "python_full_version >= '3.14' and sys_platform == 'emscripten'",
     "python_full_version >= '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32'",
+    "(python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin') or (python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32')",
     "python_full_version == '3.13.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.13.*' and platform_machine != 'arm64') or (python_full_version == '3.13.*' and sys_platform != 'darwin')",
     "python_full_version == '3.12.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.12.*' and platform_machine != 'arm64') or (python_full_version == '3.12.*' and sys_platform != 'darwin')",
 ]
 dependencies = [
     { name = "alabaster", marker = "python_full_version >= '3.12'" },
@@ -20480,8 +20552,7 @@ version = "2024.10.3"
 source = { registry = "https://pypi.org/simple" }
 resolution-markers = [
     "python_full_version < '3.11' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and sys_platform != 'darwin'",
+    "(python_full_version < '3.11' and platform_machine != 'arm64') or (python_full_version < '3.11' and sys_platform != 'darwin')",
 ]
 dependencies = [
     { name = "colorama", marker = "python_full_version < '3.11'" },
@@ -20504,17 +20575,13 @@ resolution-markers = [
     "python_full_version >= '3.14' and sys_platform == 'win32'",
     "python_full_version >= '3.14' and sys_platform == 'emscripten'",
     "python_full_version >= '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32'",
+    "(python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin') or (python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32')",
     "python_full_version == '3.13.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.13.*' and platform_machine != 'arm64') or (python_full_version == '3.13.*' and sys_platform != 'darwin')",
     "python_full_version == '3.12.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.12.*' and platform_machine != 'arm64') or (python_full_version == '3.12.*' and sys_platform != 'darwin')",
     "python_full_version == '3.11.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.11.*' and platform_machine != 'arm64') or (python_full_version == '3.11.*' and sys_platform != 'darwin')",
 ]
 dependencies = [
     { name = "colorama", marker = "python_full_version >= '3.11'" },
@@ -20550,8 +20617,7 @@ version = "0.6.1"
 source = { registry = "https://pypi.org/simple" }
 resolution-markers = [
     "python_full_version < '3.11' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version < '3.11' and sys_platform != 'darwin'",
+    "(python_full_version < '3.11' and platform_machine != 'arm64') or (python_full_version < '3.11' and sys_platform != 'darwin')",
 ]
 dependencies = [
     { name = "sphinx", version = "8.1.3", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version < '3.11'" },
@@ -20569,17 +20635,13 @@ resolution-markers = [
     "python_full_version >= '3.14' and sys_platform == 'win32'",
     "python_full_version >= '3.14' and sys_platform == 'emscripten'",
     "python_full_version >= '3.14' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32'",
+    "(python_full_version >= '3.14' and platform_machine != 'arm64' and sys_platform == 'darwin') or (python_full_version >= '3.14' and sys_platform != 'darwin' and sys_platform != 'emscripten' and sys_platform != 'win32')",
     "python_full_version == '3.13.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.13.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.13.*' and platform_machine != 'arm64') or (python_full_version == '3.13.*' and sys_platform != 'darwin')",
     "python_full_version == '3.12.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.12.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.12.*' and platform_machine != 'arm64') or (python_full_version == '3.12.*' and sys_platform != 'darwin')",
     "python_full_version == '3.11.*' and platform_machine == 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and platform_machine != 'arm64' and sys_platform == 'darwin'",
-    "python_full_version == '3.11.*' and sys_platform != 'darwin'",
+    "(python_full_version == '3.11.*' and platform_machine != 'arm64') or (python_full_version == '3.11.*' and sys_platform != 'darwin')",
 ]
 dependencies = [
     { name = "sphinx", version = "9.0.4", source = { registry = "https://pypi.org/simple" }, marker = "python_full_version == '3.11.*'" },