Method: pylint.config.callback_actions._GenerateRCFileAction.__call__
Calls: 2, Exceptions: 2, Paths: 1Back
Path 1: 2 calls (1.0)
ArgumentParser (2)
Namespace (2)
[] (2)
'--generate-rcfile' (2)
SystemExit (2)
1def __call__(
2 self,
3 parser: argparse.ArgumentParser,
4 namespace: argparse.Namespace,
5 values: str | Sequence[Any] | None,
6 option_string: str | None = "--generate-rcfile",
7 ) -> None:
8 # TODO: 2.x: Deprecate this after the auto-upgrade functionality of
9 # pylint-config is sufficient.
10 with warnings.catch_warnings():
11 warnings.filterwarnings("ignore", category=DeprecationWarning)
12 self.run.linter.generate_config(skipsections=("Commands",))
13 sys.exit(0)