From 8fba23fc8450d13c3a241252b547b95c0e258782 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Wed, 3 Jan 2024 21:06:12 +0100 Subject: [PATCH] Fix configuration of mypy plugins to point to paths not modules (#36563) The configuration of our MyPy plugins was wrongly pointing to modules rather than paths. This caused problems in the environment where you had no PYTHONPATH set pointing to the root of your Airflow sources. One of the side effects was that MyPy Plugin for IntelliJ failed with "invalid plugin" error. This PR changes the plugins to use relative paths instead - which should work when mypy is invoked from the root of the project (which in general is how our mypy gets invoked anyway and is the default settings for most IDE integrations. --- setup.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup.cfg b/setup.cfg index 9077a02915d70..163d2450cbab6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -206,8 +206,8 @@ no_implicit_optional = True warn_redundant_casts = True warn_unused_ignores = False plugins = - dev.mypy.plugin.decorators, - dev.mypy.plugin.outputs + dev/mypy/plugin/decorators.py, + dev/mypy/plugin/outputs.py pretty = True show_error_codes = True # Mypy since 0.991 warns about type annotations being present in an untyped