-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow Feast apply to import files recursively (and add .feastignore) (#…
…1482) * feast apply should import files recursively, add .feastignore Signed-off-by: Tsotne Tabidze <[email protected]> * Add assertpy to ci dependencies Signed-off-by: Tsotne Tabidze <[email protected]> * Simplify reading using Path.read_text() and update the test file after merging with master Signed-off-by: Tsotne Tabidze <[email protected]> * Add documentation Signed-off-by: Tsotne Tabidze <[email protected]>
- Loading branch information
Showing
7 changed files
with
287 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# .feastignore | ||
|
||
## Overview | ||
|
||
`.feastignore` is a file that is placed at the root of the [Feature Repository](../concepts/feature-repository.md). This file contains paths that should be ignored when running `feast apply`. An example `.feastignore` is shown below: | ||
|
||
{% code title=".feastignore" %} | ||
``` | ||
# 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 | ||
|
||
| Pattern | Example matches | Explanation | | ||
| ----------------- | -------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | | ||
| venv | venv/foo.py<br>venv/a/foo.py | You can specify a path to a specific directory. Everything in that directory will be ignored. | | ||
| scripts/foo.py | scripts/foo.py | You can specify a path to a specific file. Only that file will be ignored. | | ||
| scripts/*.py | scripts/foo.py<br>scripts/bar.py | You can specify asterisk (*) anywhere in the expression. An asterisk matches zero or more characters, except "/". | | ||
| scripts/**/foo.py | scripts/foo.py<br>scripts/a/foo.py<br>scripts/a/b/foo.py | You can specify double asterisk (**) anywhere in the expression. A double asterisk matches zero or more directories. | |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.