Back to Feast

.feastignore

docs/reference/feast-ignore.md

0.63.01.4 KB
Original Source

.feastignore

Overview

.feastignore is a file that is placed at the root of the Feature Repository. This file contains paths that should be ignored when running feast apply. An example .feastignore is shown below:

{% code title=".feastignore" %}

text
# Ignore virtual environment
venv

# Ignore a specific Python file
scripts/foo.py

# Ignore all Python files directly under scripts directory
scripts/*.py

# Ignore all "foo.py" anywhere under scripts directory
scripts/**/foo.py

{% endcode %}

.feastignore file is optional. If the file can not be found, every Python in the feature repo directory will be parsed by feast apply.

Feast Ignore Patterns

PatternExample matchesExplanation
venvvenv/foo.py venv/a/foo.pyYou can specify a path to a specific directory. Everything in that directory will be ignored.
scripts/foo.pyscripts/foo.pyYou can specify a path to a specific file. Only that file will be ignored.
scripts/*.pyscripts/foo.py scripts/bar.pyYou can specify asterisk (*) anywhere in the expression. An asterisk matches zero or more characters, except "/".
scripts/**/foo.pyscripts/foo.py scripts/a/foo.py scripts/a/b/foo.pyYou can specify double asterisk (**) anywhere in the expression. A double asterisk matches zero or more directories.