Method: pylint.testutils.pyreverse._read_config
Calls: 3, Exceptions: 0, Paths: 1Back
Path 1: 3 calls (1.0)
PosixPath (3)
dict (3)
1def _read_config(config_file: Path) -> TestFileOptions:
2 config = configparser.ConfigParser()
3 config.read(str(config_file))
4 return {
5 "output_formats": config.get(
6 "testoptions", "output_formats", fallback="mmd"
7 ).split(","),
8 "command_line_args": shlex.split(
9 config.get("testoptions", "command_line_args", fallback="")
10 ),
11 }