Skip to content

Add *.iml to .gitignore in all distributions#63636

Merged
potiuk merged 1 commit intoapache:mainfrom
potiuk:main
Mar 15, 2026
Merged

Add *.iml to .gitignore in all distributions#63636
potiuk merged 1 commit intoapache:mainfrom
potiuk:main

Conversation

@potiuk
Copy link
Member

@potiuk potiuk commented Mar 15, 2026

Add *.iml to .gitignore in every distribution that has a pyproject.toml.

The root .gitignore already ignores *.iml, but when building sdist or wheel
packages, only the distribution's own .gitignore is consulted. Distributions
that lacked their own .gitignore (or didn't include *.iml in it) could
accidentally package IntelliJ IDEA module files into the built artifacts.

This adds *.iml to all existing distribution .gitignore files that were
missing it, and creates a new .gitignore with *.iml for distributions
that had no .gitignore at all.


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

IntelliJ IDEA .iml files could end up in sdist/wheel packages when
building distributions that lack their own .gitignore. Adding *.iml
to every distribution's .gitignore ensures these IDE metadata files
are excluded from built packages.
@potiuk potiuk merged commit 444d45c into apache:main Mar 15, 2026
75 of 77 checks passed
@github-actions
Copy link

Backport failed to create: v3-1-test. View the failure log Run details

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 Commit Link

You can attempt to backport this manually by running:

cherry_picker 444d45c v3-1-test

This should apply the commit to the v3-1-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

If you don't have cherry-picker installed, see the installation guide.

potiuk added a commit that referenced this pull request Mar 15, 2026
IntelliJ IDEA .iml files could end up in sdist/wheel packages when
building distributions that lack their own .gitignore. Adding *.iml
to every distribution's .gitignore ensures these IDE metadata files
are excluded from built packages.
(cherry picked from commit 444d45c)

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

IntelliJ IDEA .iml files could end up in sdist/wheel packages when
building distributions that lack their own .gitignore. Adding *.iml
to every distribution's .gitignore ensures these IDE metadata files
are excluded from built packages.
(cherry picked from commit 444d45c)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants