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

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


The following commit(s) were added to refs/heads/v3-2-test by this push:
     new d6f4455de50 fix(dev): correct mypy plugin paths in dev/pyproject.toml 
(#66685)
d6f4455de50 is described below

commit d6f4455de505679acf1ec824c5429fcad8765a5a
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon May 11 05:57:45 2026 +0200

    fix(dev): correct mypy plugin paths in dev/pyproject.toml (#66685)
    
    The `tool.mypy.plugins` entries on v3-2-test were written as
    file paths with a typo'd directory name (`airflow_mypy/plugin/...`
    where the directory is actually `plugins/` plural), and on the
    file-path format which doesn't match `main`'s use of the
    module-name format.
    
    Result: the `mypy-dev` prek hook fails on every v3-2-test commit
    that touches a `dev/` file with:
    
        dev/pyproject.toml:1: error: Can't find plugin
        "dev/airflow_mypy/plugin/decorators.py"  [misc]
    
    Switch to the module-name format already used on `main`
    (`airflow_mypy.plugins.decorators`). Same intent, plugin
    discovery actually works.
---
 dev/pyproject.toml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev/pyproject.toml b/dev/pyproject.toml
index 06610b1a7eb..dbb8068230c 100644
--- a/dev/pyproject.toml
+++ b/dev/pyproject.toml
@@ -74,8 +74,8 @@ no_implicit_optional = true
 warn_redundant_casts = true
 warn_unused_ignores = false
 plugins = [
-    "airflow_mypy/plugin/decorators.py",
-    "airflow_mypy/plugin/outputs.py",
+    "airflow_mypy.plugins.decorators",
+    "airflow_mypy.plugins.outputs",
 ]
 pretty = true
 show_error_codes = true

Reply via email to