repomatic.bundle module¶

Raw access to the data files bundled in repomatic/data/.

The lowest layer of bundled-data access, deliberately dependency-free so any module can read a data file without import cycles. Policy layers sit above: the init command validates names against the exportable-file registry, and repomatic.tooling.runner resolves tool configs.

repomatic.bundle.get_data_content(filename: str) → str[source]¶

Get the content of a bundled data file.

This is the low-level function for reading any file from repomatic/data/.

Memoized for the process: bundled data is immutable for the life of an installed release, and the workflow lint re-reads the same canonical workflow per downstream file it checks.

Parameters:

filename (str) – Name of the file to retrieve (e.g., “labels.toml”).

Return type:

str

Returns:

Content of the file as a string.

Raises:

FileNotFoundError – If the file doesn’t exist.