Skip to content

Add prek hook to enforce *.iml in distribution .gitignore files#63647

Merged
potiuk merged 1 commit intoapache:mainfrom
potiuk:add-check-distribution-gitignore
Mar 15, 2026
Merged

Add prek hook to enforce *.iml in distribution .gitignore files#63647
potiuk merged 1 commit intoapache:mainfrom
potiuk:add-check-distribution-gitignore

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Mar 15, 2026

Adds a pre-commit check that verifies every distribution directory
(containing pyproject.toml) has a .gitignore file with a *.iml entry,
preventing IntelliJ IDEA module files from being committed.

This complements #63636 which added *.iml to all existing distribution
.gitignore files — this hook ensures new distributions also include it.


Was generative AI tooling used to co-author this PR?
  • Yes — Claude Code (Claude Opus 4.6)

Generated-by: Claude Code (Claude Opus 4.6) following the guidelines

Adds a pre-commit check that verifies every distribution directory
(containing pyproject.toml) has a .gitignore file with a *.iml entry,
preventing IntelliJ IDEA module files from being committed.
@boring-cyborg boring-cyborg bot added area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch labels Mar 15, 2026
@potiuk potiuk merged commit 0355644 into apache:main Mar 15, 2026
74 checks passed
@potiuk potiuk deleted the add-check-distribution-gitignore branch March 15, 2026 20:07
github-actions bot pushed a commit that referenced this pull request Mar 15, 2026
… files (#63647)

Adds a pre-commit check that verifies every distribution directory
(containing pyproject.toml) has a .gitignore file with a *.iml entry,
preventing IntelliJ IDEA module files from being committed.
(cherry picked from commit 0355644)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
@github-actions
Copy link

Backport successfully created: v3-1-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-1-test PR Link

potiuk added a commit to potiuk/airflow that referenced this pull request Mar 15, 2026
…he#63647)

Adds a pre-commit check that verifies every distribution directory
(containing pyproject.toml) has a .gitignore file with a *.iml entry,
preventing IntelliJ IDEA module files from being committed.
potiuk added a commit that referenced this pull request Mar 15, 2026
… files (#63647)

Adds a pre-commit check that verifies every distribution directory
(containing pyproject.toml) has a .gitignore file with a *.iml entry,
preventing IntelliJ IDEA module files from being committed.
(cherry picked from commit 0355644)

Co-authored-by: Jarek Potiuk <jarek@potiuk.com>
potiuk added a commit that referenced this pull request Mar 15, 2026
… files (#63647) (#63668)

Adds a pre-commit check that verifies every distribution directory
(containing pyproject.toml) has a .gitignore file with a *.iml entry,
preventing IntelliJ IDEA module files from being committed.
(cherry picked from commit 0355644)

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 backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants