devops.config.config_file
Module to parse file configuration values.
Functions
|
Parse the changelog paths from a configuration table. |
|
Parse the default changelog path from a configuration table. |
|
Parse the encoding from a configuration table. |
|
Parse file configuration from a raw dictionary. |
Classes
|
Dataclass to hold file configuration values. |
- class devops.config.config_file.FileConfig(encoding='utf-8', changelog_paths=<factory>, _default_changelog_path=None)[source]
Bases:
objectDataclass to hold file configuration values.
- devops.config.config_file.parse_file_config(raw_config)[source]
Parse file configuration from a raw dictionary.
- Parameters:
raw_config (dict) – The raw file configuration dictionary.
- Returns:
FileConfig – The parsed FileConfig dataclass instance.
- Raises:
ConfigError – If the specified encoding is invalid.
- Return type:
- devops.config.config_file.parse_encoding(table)[source]
Parse the encoding from a configuration table.
- Parameters:
table (dict) – The configuration table.
- Returns:
str – The parsed encoding.
- Raises:
ConfigError – If the specified encoding is invalid.
- Return type: