roboto.experimental.ingestion_rules.matching#
Module Contents#
- class roboto.experimental.ingestion_rules.matching.IngestionPathRule#
The path half of an ingestion rule: include and exclude Git wildmatch patterns.
File annotation and the rule’s trigger both decide through
matches(), so a file is marked ingestable exactly when the rule’s trigger would accept its upload.- exclude_patterns: tuple[str, ...] = ()#
- include_patterns: tuple[str, ...]#
- matches(relative_path)#
Whether
relative_pathmatches an include pattern and no exclude pattern, and is not a dotfile.No rule makes a dotfile ingestable, because triggers never run on dotfiles.
- Parameters:
relative_path (str)
- Return type:
bool
- classmethod of(include_patterns, exclude_patterns=())#
- Parameters:
include_patterns (collections.abc.Iterable[str])
exclude_patterns (collections.abc.Iterable[str])
- Return type: