Skip to content

Remove unregistered duplicate shared-library import prek script - #72686

Merged
potiuk merged 1 commit into
apache:mainfrom
aaron-y-chen:remove-unregistered-shared-import-prek-script
Sep 8, 2026
Merged

potiuk merged 1 commit into
apache:mainfrom
aaron-y-chen:remove-unregistered-shared-import-prek-script

Conversation

@aaron-y-chen

Copy link
Copy Markdown
Contributor

scripts/ci/prek/check_core_imports_in_shared.py is very similar to scripts/ci/prek/check_airflow_imports_in_shared.py.

However, only check_airflow_imports_in_shared.py is registered in .pre-commit-config.yaml, so I think check_core_imports_in_shared.py might be a duplicate.

Please let me know if I'm wrong, thanks!


Was generative AI tooling used to co-author this PR?
  • No (please specify the tool below)

  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@aaron-y-chen

Copy link
Copy Markdown
Contributor Author

Hi @amoghrajesh, I noticed that check_airflow_imports_in_shared.py was introduced in #61350 while check_core_imports_in_shared.py was introduced in #60410. Am I correct that we can remove check_core_imports_in_shared.py, or is there any reason to keep it in the codebase? Thanks!

@potiuk
potiuk merged commit f28c8ce into apache:main Sep 8, 2026
134 checks passed
@github-actions

github-actions Bot commented Sep 8, 2026

Copy link
Copy Markdown
Contributor

Backport successfully created: v3-3-test

Note: As of Merging PRs targeted for Airflow 3.X
the committer who merges the PR is responsible for backporting the PRs that are bug fixes (generally speaking) to the maintenance branches.

In matter of doubt please ask in #release-management Slack channel.

Status Branch Result
✅ v3-3-test PR Link

github-actions Bot pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Sep 8, 2026
…script (apache#72686)

(cherry picked from commit f28c8ce)

Co-authored-by: Aaron Chen <[email protected]>
potiuk pushed a commit that referenced this pull request Sep 8, 2026
…script (#72686) (#72705)

(cherry picked from commit f28c8ce)

Co-authored-by: Aaron Chen <[email protected]>
regarmukesh3g pushed a commit to regarmukesh3g/airflow that referenced this pull request Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants