This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/main by this push: new 8fba23fc84 Fix configuration of mypy plugins to point to paths not modules (#36563) 8fba23fc84 is described below commit 8fba23fc8450d13c3a241252b547b95c0e258782 Author: Jarek Potiuk <ja...@potiuk.com> AuthorDate: Wed Jan 3 21:06:12 2024 +0100 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 9077a02915..163d2450cb 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