Implement ignore_patterns core logic#1125
Closed
stevemessick wants to merge 2 commits into
Closed
Conversation
This was referenced Jul 16, 2026
- 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
3f261d1 to
3a98ee5
Compare
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements the core logic for
ignore_patternssupport, syncing withkagglehubbehavior.Changes:
DEFAULT_IGNORE_PATTERNSinkaggle_api_extended.py.should_ignore()helper function.DirectoryArchiveto support filtering during archive creation (zip/tar).should_ignore()andDirectoryArchivefiltering.TAG=agy
CONV=2a820637-152b-46a6-9a45-e29918f1e322