From ba69620d3d6fe5bba0df85a33f2f1ea9e4f05a08 Mon Sep 17 00:00:00 2001 From: vincbeck Date: Wed, 16 Oct 2024 10:43:34 -0400 Subject: [PATCH] Move PyCharm instructions to top of the file --- .pre-commit-config.yaml | 2 +- airflow/__init__.py | 3 +-- providers/src/airflow/providers/__init__.py | 4 +--- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 467f0e44d806b..4aac6219c2145 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -354,7 +354,7 @@ repos: args: [--fix] require_serial: true additional_dependencies: ["ruff==0.5.5"] - exclude: ^.*/.*_vendor/|^tests/dags/test_imports.py|^performance/tests/test_.*.py + exclude: ^.*/.*_vendor/|^tests/dags/test_imports.py|^performance/tests/test_.*.py|airflow/__init__.py|providers/src/airflow/providers/__init__.py - id: ruff-format name: Run 'ruff format' description: "Run 'ruff format' for extremely fast Python formatting" diff --git a/airflow/__init__.py b/airflow/__init__.py index f6c40b5091bbc..257ee8d917710 100644 --- a/airflow/__init__.py +++ b/airflow/__init__.py @@ -15,12 +15,11 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. -from __future__ import annotations - # Make `airflow` a namespace package, supporting installing # airflow.providers.* in different locations (i.e. one in site, and one in user # lib.) This is required by some IDEs to resolve the import paths. __path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore +from __future__ import annotations __version__ = "3.0.0.dev0" diff --git a/providers/src/airflow/providers/__init__.py b/providers/src/airflow/providers/__init__.py index 66fbd04b36e4d..d9d32943c5afa 100644 --- a/providers/src/airflow/providers/__init__.py +++ b/providers/src/airflow/providers/__init__.py @@ -15,12 +15,10 @@ # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. - -from __future__ import annotations - # Make `airflow` a namespace package, supporting installing # airflow.providers.* in different locations (i.e. one in site, and one in user # lib.) This is required by some IDEs to resolve the import paths. # # Note: this file is not installed or distributed in any distribution! __path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore +from __future__ import annotations