Skip to content
Roboto
Esc
↑↓navigate↵open⌘Jpreview
On this page

roboto.experimental.ingestion_rules.matching

Module Contents

IngestionPathRule

class roboto.experimental.ingestion_rules.matching.IngestionPathRule#View Source

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.

Attributes

IngestionPathRule.exclude_patterns

exclude_patterns tuple[str, ...] = () #

IngestionPathRule.include_patterns

include_patterns tuple[str, ...] #

IngestionPathRule.matches()

matches(relative_path)#View Source

Whether relative_path matches 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

IngestionPathRule.of()

classmethod of(include_patterns, exclude_patterns=())#View Source

Parameters

include_patterns collections.abc.Iterable[str]
exclude_patterns collections.abc.Iterable[str]

Was this page helpful?