files_legacy
This module handles the legacy config file format.
Functions¶
read_ini_file
¶
read_ini_file(file_path: Path) -> Dict[str, Any]
update_ini_config_file
¶
update_ini_config_file(
config_file: Union[str, Path],
current_version: str,
new_version: str,
dry_run: bool = False,
) -> None
Update the current_version key in the configuration file.
Instead of parsing and re-writing the config file with new information, it will use a regular expression to just replace the current_version value. The idea is it will avoid unintentional changes (like formatting) to the config file.
Parameters: