fname stringlengths 63 176 | rel_fname stringclasses 706
values | line int64 -1 4.5k | name stringlengths 1 81 | kind stringclasses 2
values | category stringclasses 2
values | info stringlengths 0 77.9k ⌀ |
|---|---|---|---|---|---|---|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/argument.py | pylint/config/argument.py | 83 | _path_transformer | def | function | def _path_transformer(value: str) -> str:
"""Expand user and variables in a path."""
return os.path.expandvars(os.path.expanduser(value))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/argument.py | pylint/config/argument.py | 85 | expandvars | ref | function | return os.path.expandvars(os.path.expanduser(value))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/argument.py | pylint/config/argument.py | 85 | expanduser | ref | function | return os.path.expandvars(os.path.expanduser(value))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/argument.py | pylint/config/argument.py | 88 | _py_version_transformer | def | function | def _py_version_transformer(value: str) -> tuple[int, ...]:
"""Transforms a version string into a version tuple."""
try:
version = tuple(int(val) for val in value.replace(",", ".").split("."))
except ValueError:
raise argparse.ArgumentTypeError(
f"{value} has an invalid format, s... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/argument.py | pylint/config/argument.py | 99 | _regexp_csv_transfomer | def | function | def _regexp_csv_transfomer(value: str) -> Sequence[Pattern[str]]:
"""Transforms a comma separated list of regular expressions."""
patterns: list[Pattern[str]] = []
for pattern in _csv_transformer(value):
patterns.append(re.compile(pattern))
return patterns
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/argument.py | pylint/config/argument.py | 102 | _csv_transformer | ref | function | for pattern in _csv_transformer(value):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/argument.py | pylint/config/argument.py | 107 | _regexp_paths_csv_transfomer | def | function | def _regexp_paths_csv_transfomer(value: str) -> Sequence[Pattern[str]]:
"""Transforms a comma separated list of regular expressions paths."""
patterns: list[Pattern[str]] = []
for pattern in _csv_transformer(value):
patterns.append(
re.compile(
str(pathlib.PureWindowsPath... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/argument.py | pylint/config/argument.py | 110 | _csv_transformer | ref | function | for pattern in _csv_transformer(value):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/argument.py | pylint/config/argument.py | 115 | as_posix | ref | function | + pathlib.PureWindowsPath(pattern).as_posix()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/argument.py | pylint/config/argument.py | 145 | _Argument | def | class | __init__ |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/argument.py | pylint/config/argument.py | 178 | _BaseStoreArgument | def | class | __init__ |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/argument.py | pylint/config/argument.py | 207 | _StoreArgument | def | class | __init__ |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/argument.py | pylint/config/argument.py | 254 | _StoreTrueArgument | def | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/argument.py | pylint/config/argument.py | 283 | _DeprecationArgument | def | class | __init__ |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/argument.py | pylint/config/argument.py | 331 | _ExtendArgument | def | class | __init__ |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/argument.py | pylint/config/argument.py | 375 | _StoreOldNamesArgument | def | class | __init__ |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/argument.py | pylint/config/argument.py | 412 | _StoreNewNamesArgument | def | class | __init__ |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/argument.py | pylint/config/argument.py | 449 | _CallableArgument | def | class | __init__ |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 59 | _ArgumentsManager | def | class | __init__ config config options_providers options_providers _register_options_provider _add_arguments_to_parser _add_parser_option _load_default_argument_values _parse_configuration_file _parse_command_line_configuration reset_parsers register_options_provider add_option_group add_optik_option optik_option generate_conf... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 86 | reset_parsers | ref | function | self.reset_parsers(usage or "")
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 98 | config | def | function | def config(self) -> argparse.Namespace:
"""Namespace for all options."""
return self._config
@config.setter
def config(self, value: argparse.Namespace) -> None:
self._config = value
@property
def options_providers(self) -> list[ConfigProvider]:
# TODO: 3.0: Remove d... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 103 | config | def | function | def config(self, value: argparse.Namespace) -> None:
self._config = value
@property
def options_providers(self) -> list[ConfigProvider]:
# TODO: 3.0: Remove deprecated attribute.
warnings.warn(
"options_providers has been deprecated. It will be removed in pylint 3.0.",
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 107 | options_providers | def | function | def options_providers(self) -> list[ConfigProvider]:
# TODO: 3.0: Remove deprecated attribute.
warnings.warn(
"options_providers has been deprecated. It will be removed in pylint 3.0.",
DeprecationWarning,
)
return self._options_providers
@options_provide... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 116 | options_providers | def | function | def options_providers(self, value: list[ConfigProvider]) -> None:
warnings.warn(
"Setting options_providers has been deprecated. It will be removed in pylint 3.0.",
DeprecationWarning,
)
self._options_providers = value
def _register_options_provider(self, provide... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 123 | _register_options_provider | def | function | def _register_options_provider(self, provider: _ArgumentsProvider) -> None:
"""Register an options provider and load its defaults."""
for opt, optdict in provider.options:
self._option_dicts[opt] = optdict
argument = _convert_option_to_argument(opt, optdict)
secti... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 127 | _convert_option_to_argument | ref | function | argument = _convert_option_to_argument(opt, optdict)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 136 | _add_arguments_to_parser | ref | function | self._add_arguments_to_parser(section, section_desc, argument)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 138 | _load_default_argument_values | ref | function | self._load_default_argument_values()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 140 | _add_arguments_to_parser | def | function | def _add_arguments_to_parser(
self, section: str, section_desc: str | None, argument: _Argument
) -> None:
"""Add an argument to the correct argument section/group."""
try:
section_group = self._argument_groups_dict[section]
except KeyError:
if section_des... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 148 | add_argument_group | ref | function | section_group = self._arg_parser.add_argument_group(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 152 | add_argument_group | ref | function | section_group = self._arg_parser.add_argument_group(title=section)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 154 | _add_parser_option | ref | function | self._add_parser_option(section_group, argument)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 157 | _add_parser_option | def | function | def _add_parser_option(
section_group: argparse._ArgumentGroup, argument: _Argument
) -> None:
"""Add an argument."""
if isinstance(argument, _StoreArgument):
section_group.add_argument(
*argument.flags,
action=argument.action,
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 162 | add_argument | ref | function | section_group.add_argument(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 172 | add_argument | ref | function | section_group.add_argument(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 186 | add_argument | ref | function | section_group.add_argument(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 196 | add_argument | ref | function | section_group.add_argument(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 207 | add_argument | ref | function | section_group.add_argument(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 214 | add_argument | ref | function | section_group.add_argument(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 222 | add_argument | ref | function | section_group.add_argument(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 235 | _load_default_argument_values | def | function | def _load_default_argument_values(self) -> None:
"""Loads the default values of all registered options."""
self.config = self._arg_parser.parse_args([], self.config)
def _parse_configuration_file(self, arguments: list[str]) -> None:
"""Parse the arguments found in a configuration file i... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 237 | parse_args | ref | function | self.config = self._arg_parser.parse_args([], self.config)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 239 | _parse_configuration_file | def | function | def _parse_configuration_file(self, arguments: list[str]) -> None:
"""Parse the arguments found in a configuration file into the namespace."""
self.config, parsed_args = self._arg_parser.parse_known_args(
arguments, self.config
)
unrecognized_options: list[str] = []
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 241 | parse_known_args | ref | function | self.config, parsed_args = self._arg_parser.parse_known_args(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 249 | _UnrecognizedOptionError | ref | function | raise _UnrecognizedOptionError(options=unrecognized_options)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 251 | _parse_command_line_configuration | def | function | def _parse_command_line_configuration(
self, arguments: Sequence[str] | None = None
) -> list[str]:
"""Parse the arguments found on the command line into the namespace."""
arguments = sys.argv[1:] if arguments is None else arguments
self.config, parsed_args = self._arg_parser.pa... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 257 | parse_known_args | ref | function | self.config, parsed_args = self._arg_parser.parse_known_args(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 263 | reset_parsers | def | function | def reset_parsers(self, usage: str = "") -> None: # pragma: no cover
"""DEPRECATED."""
warnings.warn(
"reset_parsers has been deprecated. Parsers should be instantiated "
"once during initialization and do not need to be reset.",
DeprecationWarning,
)
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 279 | register_options_provider | def | function | def register_options_provider(
self, provider: ConfigProvider, own_group: bool = _True
) -> None: # pragma: no cover
"""DEPRECATED: Register an options provider."""
warnings.warn(
"register_options_provider has been deprecated. Options providers and "
"arguments ... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 297 | add_option_group | ref | function | self.add_option_group(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 307 | add_optik_option | ref | function | self.add_optik_option(provider, self.cmdline_parser, opt, optdict)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 317 | add_option_group | ref | function | self.add_option_group(gname, gdoc, goptions, provider)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 319 | add_option_group | def | function | def add_option_group(
self,
group_name: str,
_: str | None,
options: list[tuple[str, OptionDict]],
provider: ConfigProvider,
) -> None: # pragma: no cover
"""DEPRECATED."""
warnings.warn(
"add_option_group has been deprecated. Option groups sh... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 340 | add_option_group | ref | function | self.cmdline_parser.add_option_group(group)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 347 | add_section | ref | function | self.cfgfile_parser.add_section(group_name)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 354 | add_optik_option | ref | function | self.add_optik_option(provider, group, opt, optdict)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 356 | add_optik_option | def | function | def add_optik_option(
self,
provider: ConfigProvider,
optikcontainer: optparse.OptionParser | optparse.OptionGroup,
opt: str,
optdict: OptionDict,
) -> None: # pragma: no cover
"""DEPRECATED."""
warnings.warn(
"add_optik_option has been deprec... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 371 | optik_option | ref | function | args, optdict = self.optik_option(provider, opt, optdict)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 372 | add_option | ref | function | option = optikcontainer.add_option(*args, **optdict)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 376 | optik_option | def | function | def optik_option(
self, provider: ConfigProvider, opt: str, optdict: OptionDict
) -> tuple[list[str], OptionDict]: # pragma: no cover
"""DEPRECATED: Get our personal option definition and return a suitable form for
use with optik/optparse.
"""
warnings.warn(
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 414 | generate_config | def | function | def generate_config(
self, stream: TextIO | None = None, skipsections: tuple[str, ...] = ()
) -> None: # pragma: no cover
"""DEPRECATED: Write a configuration file according to the current configuration
into the given stream or stdout.
"""
warnings.warn(
"gen... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 466 | format_section | ref | function | utils.format_section(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 471 | load_provider_defaults | def | function | def load_provider_defaults(self) -> None: # pragma: no cover
"""DEPRECATED: Initialize configuration using default values."""
warnings.warn(
"load_provider_defaults has been deprecated. Parsing of option defaults should be done "
"automatically by initializing an ArgumentsPr... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 481 | load_defaults | ref | function | provider.load_defaults()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 483 | read_config_file | def | function | def read_config_file(
self, config_file: Path | None = None, verbose: bool = _False
) -> None: # pragma: no cover
"""DEPRECATED: Read the configuration file but do not load it (i.e. dispatching
values to each option's provider).
:raises OSError: When the specified config file d... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 501 | expandvars | ref | function | config_file = Path(os.path.expandvars(config_file)).expanduser()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 507 | _parse_toml | ref | function | self._parse_toml(config_file, parser)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 513 | read_file | ref | function | parser.read_file(fp)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 525 | _parse_toml | def | function | def _parse_toml(
config_file: Path, parser: configparser.ConfigParser
) -> None: # pragma: no cover
"""DEPRECATED: Parse and handle errors of a toml configuration file.
TODO: 3.0: Remove deprecated method.
"""
with open(config_file, mode="rb") as fp:
content... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 533 | load | ref | function | content = tomllib.load(fp)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 555 | add_section | ref | function | parser.add_section(section_name)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 558 | load_config_file | def | function | def load_config_file(self) -> None: # pragma: no cover
"""DEPRECATED: Dispatch values previously read from a configuration file to each
option's provider.
"""
warnings.warn(
"load_config_file has been deprecated. It will be removed in pylint 3.0.",
Deprecatio... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 567 | sections | ref | function | for section in parser.sections():
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 570 | global_set_option | ref | function | self.global_set_option(option, value)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 574 | load_configuration | def | function | def load_configuration(self, **kwargs: Any) -> None: # pragma: no cover
"""DEPRECATED: Override configuration according to given parameters."""
warnings.warn(
"load_configuration has been deprecated. It will be removed in pylint 3.0.",
DeprecationWarning,
)
w... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 582 | load_configuration_from_config | ref | function | return self.load_configuration_from_config(kwargs)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 584 | load_configuration_from_config | def | function | def load_configuration_from_config(
self, config: dict[str, Any]
) -> None: # pragma: no cover
warnings.warn(
"DEPRECATED: load_configuration_from_config has been deprecated. It will be removed in pylint 3.0.",
DeprecationWarning,
)
for opt, opt_value in ... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 594 | set_option | ref | function | provider.set_option(opt, opt_value)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 596 | load_command_line_configuration | def | function | def load_command_line_configuration(
self, args: list[str] | None = None
) -> list[str]: # pragma: no cover
"""DEPRECATED: Override configuration according to command line parameters.
return additional arguments
"""
warnings.warn(
"load_command_line_configur... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 608 | parse_args | ref | function | (options, args) = self.cmdline_parser.parse_args(args=args)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 626 | format_help | ref | function | return self._arg_parser.format_help()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 628 | cb_set_provider_option | def | function | def cb_set_provider_option(self, option, opt, value, parser): # pragma: no cover
"""DEPRECATED: Optik callback for option setting."""
# TODO: 3.0: Remove deprecated method.
warnings.warn(
"cb_set_provider_option has been deprecated. It will be removed in pylint 3.0.",
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 644 | set_option | ref | function | self.set_option(opt, value)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 646 | global_set_option | def | function | def global_set_option(self, opt: str, value: Any) -> None: # pragma: no cover
"""DEPRECATED: Set option on the correct option provider."""
# TODO: 3.0: Remove deprecated method.
warnings.warn(
"global_set_option has been deprecated. You can use _arguments_manager.set_option "
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 654 | set_option | ref | function | self.set_option(opt, value)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 656 | _generate_config_file | def | function | def _generate_config_file(self) -> None:
"""Write a configuration file according to the current configuration into stdout."""
toml_doc = tomlkit.document()
pylint_tool_table = tomlkit.table(is_super_table=_True)
toml_doc.add(tomlkit.key(["tool", "pylint"]), pylint_tool_table)
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 658 | document | ref | function | toml_doc = tomlkit.document()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 659 | table | ref | function | pylint_tool_table = tomlkit.table(is_super_table=True)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 660 | key | ref | function | toml_doc.add(tomlkit.key(["tool", "pylint"]), pylint_tool_table)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 674 | table | ref | function | group_table = tomlkit.table()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 694 | comment | ref | function | group_table.add(tomlkit.comment(line))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 701 | comment | ref | function | group_table.add(tomlkit.comment(f"{optname} ="))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 702 | nl | ref | function | group_table.add(tomlkit.nl())
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 715 | nl | ref | function | group_table.add(tomlkit.nl())
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 720 | dumps | ref | function | toml_string = tomlkit.dumps(toml_doc)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 723 | loads | ref | function | tomllib.loads(toml_string)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 727 | set_option | def | function | def set_option(
self,
optname: str,
value: Any,
action: str | None = "default_value",
optdict: None | str | OptionDict = "default_value",
) -> None:
"""Set an option on the namespace object."""
# TODO: 3.0: Remove deprecated arguments.
if action !=... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 749 | parse_known_args | ref | function | self.config = self._arg_parser.parse_known_args(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_manager.py | pylint/config/arguments_manager.py | 750 | _parse_rich_type_value | ref | function | [f"--{optname.replace('_', '-')}", _parse_rich_type_value(value)],
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/config/arguments_provider.py | pylint/config/arguments_provider.py | 18 | UnsupportedAction | def | class | __init__ |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.