class documentation

class _ConfigurationFileParser: (source)

View In Hierarchy

Class to parse various formats of configuration files.

Method __init__ Undocumented
Method parse_config_file Parse a config file and return str-str pairs.
Instance Variable linter Undocumented
Instance Variable verbose_mode Undocumented
Static Method _ini_file_with_sections Return whether the file uses sections.
Method _parse_ini_file Parse and handle errors of a ini configuration file.
Method _parse_toml_file Parse and handle errors of a toml configuration file.
def __init__(self, verbose: bool, linter: PyLinter): (source)

Undocumented

def parse_config_file(self, file_path: Path|None) -> tuple[dict[str, str], list[str]]: (source)

Parse a config file and return str-str pairs.

Undocumented

verbose_mode = (source)

Undocumented

@staticmethod
def _ini_file_with_sections(file_path: Path) -> bool: (source)

Return whether the file uses sections.

def _parse_ini_file(self, file_path: Path) -> tuple[dict[str, str], list[str]]: (source)

Parse and handle errors of a ini configuration file.

def _parse_toml_file(self, file_path: Path) -> tuple[dict[str, str], list[str]]: (source)

Parse and handle errors of a toml configuration file.