Skip to content

Prevent non-source files from being added into source-only directories #118189

Closed as not planned
@arhadthedev

Description

@arhadthedev

Feature or enhancement

Proposal:

gh-118159 accidentally added Include/incl.tar with a full copy of Include. Since this addition fell through the cracks, we need to help both contributors and triagers by .gitignore-ing non-source files in the most edited directories:

  • anything different from *.h in Include
  • anything different from *.py in Lib (except Lib/test where code is bundled with test data)

Modules and Objects require more complex rules so I skipped them. However, it'll be great if anyone defines and adds them.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixestype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions