Skip to content

Conversation

@github-actions
Copy link

The __init__.py for tests should have the legacy namespaces
defined in order for IDE imports to work properly. This works also
in IDEs where tests folders are added the path of ours (this
is done via setup_idea.py and setup_vscode.py).

There was a bug in our prek hook wher it did not have "expected"
and "namespace" init.py for those known test folders.

This PR fixes the prek hook and some of the recently added
folders that had wrong init.py added.
(cherry picked from commit 80c2ccc)

Co-authored-by: Jarek Potiuk jarek@potiuk.com

@potiuk
Copy link
Member

potiuk commented Nov 11, 2025

No need to backport.

@potiuk potiuk closed this Nov 11, 2025
@pierrejeambrun pierrejeambrun reopened this Dec 1, 2025
@pierrejeambrun
Copy link
Member

The `__init__.py` for tests should have the legacy namespaces
defined in order for IDE imports to work properly. This works also
in IDEs where `tests` folders are added the path of ours (this
is done via `setup_idea.py` and `setup_vscode.py`).

There was a bug in our prek hook wher it did not have "expected"
and "namespace" __init__.py for those known test folders.

This PR fixes the prek hook and some of the recently added
folders that had wrong __init__.py added.
(cherry picked from commit 80c2ccc)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
@pierrejeambrun pierrejeambrun force-pushed the backport-80c2ccc-v3-1-test branch from 68d18d6 to 557c71c Compare December 1, 2025 15:36
@pierrejeambrun pierrejeambrun marked this pull request as ready for review December 1, 2025 15:37
@pierrejeambrun pierrejeambrun merged commit f5e76d1 into v3-1-test Dec 1, 2025
101 of 105 checks passed
@pierrejeambrun pierrejeambrun deleted the backport-80c2ccc-v3-1-test branch December 1, 2025 16:34
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Dec 2, 2025
@ephraimbuddy ephraimbuddy added this to the Airflow 3.1.4 milestone Dec 2, 2025
ephraimbuddy pushed a commit that referenced this pull request Dec 3, 2025
The `__init__.py` for tests should have the legacy namespaces
defined in order for IDE imports to work properly. This works also
in IDEs where `tests` folders are added the path of ours (this
is done via `setup_idea.py` and `setup_vscode.py`).

There was a bug in our prek hook wher it did not have "expected"
and "namespace" __init__.py for those known test folders.

This PR fixes the prek hook and some of the recently added
folders that had wrong __init__.py added.
(cherry picked from commit 80c2ccc)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:dev-tools area:providers backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) provider:apache-impala provider:apache-tinkerpop provider:exasol provider:git

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants