Method: pylint.config.arguments_manager._ArgumentsManager.load_command_line_configuration
Calls: 2, Exceptions: 0, Paths: 2Back
Path 1: 1 calls (0.5)
[] (1)
[] (1)
1def load_command_line_configuration(
2 self, args: list[str] | None = None
3 ) -> list[str]: # pragma: no cover
4 """DEPRECATED: Override configuration according to command line parameters.
5
6 return additional arguments
7 """
8 warnings.warn(
9 "load_command_line_configuration has been deprecated. It will be removed in pylint 3.0.",
10 DeprecationWarning,
11 stacklevel=2,
12 )
13 args = sys.argv[1:] if args is None else list(args)
14 (options, args) = self.cmdline_parser.parse_args(args=args)
15 for provider in self._nocallback_options:
16 config = provider.config
17 for attr in config.__dict__.keys():
18 value = getattr(options, attr, None)
19 if value is None:
20 continue
21 setattr(config, attr, value)
22 return args # type: ignore[return-value]
Path 2: 1 calls (0.5)
['/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/lint/test_pylinter.py'] (1)
['/Users/andrehora/Documents/git/projects-pathspotter/pylint/tests/lint/test_pylinter.py'] (1)
1def load_command_line_configuration(
2 self, args: list[str] | None = None
3 ) -> list[str]: # pragma: no cover
4 """DEPRECATED: Override configuration according to command line parameters.
5
6 return additional arguments
7 """
8 warnings.warn(
9 "load_command_line_configuration has been deprecated. It will be removed in pylint 3.0.",
10 DeprecationWarning,
11 stacklevel=2,
12 )
13 args = sys.argv[1:] if args is None else list(args)
14 (options, args) = self.cmdline_parser.parse_args(args=args)
15 for provider in self._nocallback_options:
16 config = provider.config
17 for attr in config.__dict__.keys():
18 value = getattr(options, attr, None)
19 if value is None:
20 continue
21 setattr(config, attr, value)
22 return args # type: ignore[return-value]