Skip to content

Implement ignore_patterns core logic#1125

Closed
stevemessick wants to merge 2 commits into
mainfrom
feature/ignore-patterns-core
Closed

Implement ignore_patterns core logic#1125
stevemessick wants to merge 2 commits into
mainfrom
feature/ignore-patterns-core

Conversation

@stevemessick

Copy link
Copy Markdown
Contributor

This PR implements the core logic for ignore_patterns support, syncing with kagglehub behavior.

Changes:

  • Define DEFAULT_IGNORE_PATTERNS in kaggle_api_extended.py.
  • Implement should_ignore() helper function.
  • Update DirectoryArchive to support filtering during archive creation (zip/tar).
  • Add unit tests for should_ignore() and DirectoryArchive filtering.

TAG=agy
CONV=2a820637-152b-46a6-9a45-e29918f1e322

- Define DEFAULT_IGNORE_PATTERNS.
- Implement should_ignore helper.
- Update DirectoryArchive to support filtering for zip/tar formats.
- Add unit tests for should_ignore and DirectoryArchive.

TAG=agy
CONV=2a820637-152b-46a6-9a45-e29918f1e322
TAG=agy
CONV=2a820637-152b-46a6-9a45-e29918f1e322
@stevemessick

Copy link
Copy Markdown
Contributor Author

Closing; see #1130.

stevemessick added a commit that referenced this pull request Jul 16, 2026
This PR combines all the work for implementing `ignore_patterns` in
model, dataset, and competition uploading, along with documentation.

It contains changes from the following PRs (kept open for reference):
- #1125 (Core logic)
- #1126 (Models integration)
- #1127 (Datasets integration)
- #1128 (Competitions integration)
- #1129 (Documentation)

Key Changes:
- Core: Define `DEFAULT_IGNORE_PATTERNS` and `should_ignore()`. Update
`DirectoryArchive` to filter files/dirs.
- Models: Integrate `ignore_patterns` into model uploading API and CLI
(`--ignore-patterns`).
- Datasets: Integrate `ignore_patterns` into dataset uploading API and
CLI (`--ignore-patterns`).
- Competitions: Integrate `ignore_patterns` into competition data update
walk. Bypass defaults if `include_hidden` is True. Add CLI support.
- Docs: Document the new option for all commands.

TAG=agy
CONV=2a820637-152b-46a6-9a45-e29918f1e322
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant