From 4bab3d1ecccb858ec9d6cef3285d7bc6c19666ba Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Mon, 11 May 2026 05:54:34 +0200 Subject: [PATCH] fix(dev): correct mypy plugin paths in dev/pyproject.toml 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 06610b1a7ebbc..dbb8068230cc3 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