Skip to content

dvc: support .dvcignore #1499

@efiop

Description

@efiop

Same as .gitignore, but for dvc. It will tell dvc which paths to ignore when caching data. Would be extremely useful for ignoring auto-generated/temporary files/directories that are created as a side effect and don't carry anything useful.

First iteration should make patterns listed in dvcignore be ignored on Repo.stages() when collecting stages.

echo '/directory_with_millions_of_files' > .dvcignore
dvc status # should not enter `directory_with_millons_of_files`

Second iteration should support dvc add/run. We have a separate issue for it at #1876

Metadata

Metadata

Assignees

Labels

enhancementEnhances DVCfeature requestRequesting a new featurep2-mediumMedium priority, should be done, but less important

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions