Skip to content

Add pre-commit to validate provider __init__ is matching the template #44024

Description

@eladkal

Body

To avoid issues like: #44017

Some info about templating of __init__
https://github.com/apache/airflow/blob/main/dev/README_RELEASE_PROVIDER_PACKAGES.md#optional-apply-template-updates

The pre commit should fail if someone modify the init to a pattern that doesn't match the template

Committer

  • I acknowledge that I am a maintainer/committer of the Apache Airflow project.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:CIAirflow's tests and continious integrationarea:dev-envCI, pre-commit, pylint and other changes that do not change the behavior of the final codekind:metaHigh-level information important to the communitykind:taskA task that needs to be completed as part of a larger issue

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions