repomatic.tooling.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:
repomatic.init_project.export_content validates names against the
exportable-file registry, and repomatic.tooling.tool_runner resolves tool configs.
- repomatic.tooling.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:
- Returns:
Content of the file as a string.
- Raises:
FileNotFoundError – If the file doesn’t exist.
- repomatic.tooling.bundle.get_data_file_path(filename)[source]¶
Yield the filesystem path of a bundled data file.
Unlike
get_data_content()which returns string content, this yields aPathsuitable for passing to external tools via--config <path>. The path is valid only within the context manager.