From 1a21790b385e0f36a79a21fbc68ac4e5bf40d677 Mon Sep 17 00:00:00 2001 From: Steve Messick Date: Thu, 16 Jul 2026 20:24:27 +0000 Subject: [PATCH] Document --ignore-patterns option for models, datasets, and competitions TAG=agy CONV=2a820637-152b-46a6-9a45-e29918f1e322 --- docs/competition_creation.md | 3 ++- docs/datasets.md | 4 ++++ docs/model_variations.md | 2 ++ docs/model_variations_versions.md | 2 ++ 4 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/competition_creation.md b/docs/competition_creation.md index b4f77a91..be78e134 100644 --- a/docs/competition_creation.md +++ b/docs/competition_creation.md @@ -520,7 +520,7 @@ file you want in the new version. ```bash kaggle competitions data update -p -m "" \ - [--rerun] [--include-hidden] + [--rerun] [--include-hidden] [--ignore-patterns ] ``` **Arguments:** @@ -545,6 +545,7 @@ kaggle competitions data update -p -m "" \ sub-directories (names starting with `.` — e.g. `.DS_Store`, `.git/`, `.gitignore`). Skipped by default so you don't accidentally publish OS metadata or version-control detritus. +- `--ignore-patterns ` (optional): Patterns to ignore when uploading files/dirs. Can be specified multiple times. Note that default ignore patterns (like `.git/`, `.cache/`, `.huggingface/`) are bypassed when `--include-hidden` is True. **Examples:** diff --git a/docs/datasets.md b/docs/datasets.md index c753f2c5..cfc0fbb7 100644 --- a/docs/datasets.md +++ b/docs/datasets.md @@ -173,6 +173,8 @@ kaggle datasets create -p [options] * `-q, --quiet`: Suppress verbose output. * `-t, --keep-tabular`: Do not convert tabular files to CSV (default is to convert). * `-r, --dir-mode `: How to handle directories: `skip` (ignore), `zip` (compressed upload), `tar` (uncompressed upload) (default: `skip`). +* `--ignore-patterns `: Patterns of files/dirs to ignore. Can be specified multiple times. + **Example:** @@ -208,6 +210,8 @@ kaggle datasets version -p -m [options] * `-t, --keep-tabular`: Do not convert tabular files to CSV. * `-r, --dir-mode `: Directory handling mode (`skip`, `zip`, `tar`). * `-d, --delete-old-versions`: Delete old versions of this dataset. +* `--ignore-patterns `: Patterns of files/dirs to ignore. Can be specified multiple times. + **Example:** diff --git a/docs/model_variations.md b/docs/model_variations.md index 48e3ca25..06b49212 100644 --- a/docs/model_variations.md +++ b/docs/model_variations.md @@ -44,6 +44,8 @@ kaggle models variations create -p [options] * `-p, --path `: Path to the folder containing the model variation files and the `model-instance-metadata.json` file (defaults to the current directory). * `-q, --quiet`: Suppress verbose output. * `-r, --dir-mode `: How to handle directories within the upload: `skip` (ignore), `zip` (compressed upload), `tar` (uncompressed upload) (default: `skip`). +* `--ignore-patterns `: Patterns of files/dirs to ignore. Can be specified multiple times. + **Example:** diff --git a/docs/model_variations_versions.md b/docs/model_variations_versions.md index 888fbd71..10a495e9 100644 --- a/docs/model_variations_versions.md +++ b/docs/model_variations_versions.md @@ -22,6 +22,8 @@ kaggle models variations versions create -p [opt * `-n, --version-notes `: Notes describing this version. * `-q, --quiet`: Suppress verbose output. * `-r, --dir-mode `: How to handle directories within the upload: `skip` (ignore), `zip` (compressed upload), `tar` (uncompressed upload) (default: `skip`). +* `--ignore-patterns `: Patterns of files/dirs to ignore. Can be specified multiple times. + **Example:**