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/interfaces.py | pylint/interfaces.py | 62 | is_implemented_by | def | function | def is_implemented_by(
cls: type[Interface] | tuple[type[Interface], ...], instance: BaseChecker
) -> bool:
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=DeprecationWarning)
return implements(instance, cls)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/interfaces.py | pylint/interfaces.py | 67 | implements | ref | function | return implements(instance, cls)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/interfaces.py | pylint/interfaces.py | 70 | implements | def | function | def implements(
obj: BaseChecker,
interface: type[Interface] | tuple[type[Interface], ...],
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/interfaces.py | pylint/interfaces.py | 87 | IChecker | def | class | open close |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/interfaces.py | pylint/interfaces.py | 93 | close | def | function | def close(self) -> None:
"""Called after visiting project (i.e. set of modules)."""
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/interfaces.py | pylint/interfaces.py | 97 | IRawChecker | def | class | process_module |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/interfaces.py | pylint/interfaces.py | 100 | process_module | def | function | def process_module(self, node: nodes.Module) -> None:
"""Process a module.
The module's content is accessible via ``astroid.stream``
"""
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/interfaces.py | pylint/interfaces.py | 107 | ITokenChecker | def | class | process_tokens |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/interfaces.py | pylint/interfaces.py | 110 | process_tokens | def | function | def process_tokens(self, tokens: list[TokenInfo]) -> None:
"""Process a module.
Tokens is a list of all source code tokens in the file.
"""
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/interfaces.py | pylint/interfaces.py | 117 | IAstroidChecker | def | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/interfaces.py | pylint/interfaces.py | 123 | IReporter | def | class | handle_message display_reports |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/interfaces.py | pylint/interfaces.py | 126 | handle_message | def | function | def handle_message(self, msg: Message) -> None:
"""Handle the given message object."""
def display_reports(self, layout: Section) -> None:
"""Display results encapsulated in the layout tree."""
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/interfaces.py | pylint/interfaces.py | 129 | display_reports | def | function | def display_reports(self, layout: Section) -> None:
"""Display results encapsulated in the layout tree."""
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/__init__.py | pylint/lint/__init__.py | 42 | Run | ref | function | Run(sys.argv[1:])
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/base_options.py | pylint/lint/base_options.py | 36 | _make_linter_options | def | function | def _make_linter_options(linter: PyLinter) -> Options:
"""Return the options used in a PyLinter class."""
return (
(
"ignore",
{
"type": "csv",
"metavar": "<file>[,<file>...]",
"dest": "black_list",
"kwargs": {"old_n... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/base_options.py | pylint/lint/base_options.py | 394 | _make_run_options | def | function | def _make_run_options(self: Run) -> Options:
"""Return the options used in a Run class."""
return (
(
"rcfile",
{
"action": _DoNothingAction,
"kwargs": {},
"group": "Commands",
"help": "Specify a configuration file t... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 16 | _modpath_from_file | def | function | def _modpath_from_file(filename: str, is_namespace: bool, path: list[str]) -> list[str]:
def _is_package_cb(inner_path: str, parts: list[str]) -> bool:
return modutils.check_modpath_has_init(inner_path, parts) or is_namespace
return modutils.modpath_from_file_with_callback(
filename, path=path,... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 17 | _is_package_cb | def | function | def _is_package_cb(inner_path: str, parts: list[str]) -> bool:
return modutils.check_modpath_has_init(inner_path, parts) or is_namespace
return modutils.modpath_from_file_with_callback(
filename, path=path, is_package_cb=_is_package_cb
)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 18 | check_modpath_has_init | ref | function | return modutils.check_modpath_has_init(inner_path, parts) or is_namespace
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 20 | modpath_from_file_with_callback | ref | function | return modutils.modpath_from_file_with_callback(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 25 | get_python_path | def | function | def get_python_path(filepath: str) -> str:
"""TODO This get the python path with the (bad) assumption that there is always
an __init__.py.
This is not true since python 3.3 and is causing problem.
"""
dirname = os.path.realpath(os.path.expanduser(filepath))
if not os.path.isdir(dirname):
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 31 | realpath | ref | function | dirname = os.path.realpath(os.path.expanduser(filepath))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 31 | expanduser | ref | function | dirname = os.path.realpath(os.path.expanduser(filepath))
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 32 | isdir | ref | function | if not os.path.isdir(dirname):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 33 | dirname | ref | function | dirname = os.path.dirname(dirname)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 35 | exists | ref | function | if not os.path.exists(os.path.join(dirname, "__init__.py")):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 38 | dirname | ref | function | dirname = os.path.dirname(dirname)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 43 | _is_in_ignore_list_re | def | function | def _is_in_ignore_list_re(element: str, ignore_list_re: list[Pattern[str]]) -> bool:
"""Determines if the element is matched in a regex ignore-list."""
return any(file_pattern.match(element) for file_pattern in ignore_list_re)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 48 | expand_modules | def | function | def expand_modules(
files_or_modules: Sequence[str],
ignore_list: list[str],
ignore_list_re: list[Pattern[str]],
ignore_list_paths_re: list[Pattern[str]],
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 62 | basename | ref | function | basename = os.path.basename(something)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 65 | _is_in_ignore_list_re | ref | function | or _is_in_ignore_list_re(os.path.basename(something), ignore_list_re)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 65 | basename | ref | function | or _is_in_ignore_list_re(os.path.basename(something), ignore_list_re)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 66 | _is_in_ignore_list_re | ref | function | or _is_in_ignore_list_re(something, ignore_list_paths_re)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 69 | get_python_path | ref | function | module_path = get_python_path(something)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 71 | exists | ref | function | if os.path.exists(something):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 75 | modpath_from_file | ref | function | modutils.modpath_from_file(something, path=additional_search_path)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 78 | splitext | ref | function | modname = os.path.splitext(basename)[0]
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 79 | isdir | ref | function | if os.path.isdir(something):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 87 | file_from_modpath | ref | function | filepath = modutils.file_from_modpath(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 97 | normpath | ref | function | filepath = os.path.normpath(filepath)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 100 | file_info_from_modpath | ref | function | spec = modutils.file_info_from_modpath(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 106 | isdir | ref | function | is_directory = os.path.isdir(something)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 108 | is_namespace | ref | function | is_namespace = modutils.is_namespace(spec)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 109 | is_directory | ref | function | is_directory = modutils.is_directory(spec)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 122 | basename | ref | function | and os.path.basename(filepath) == "__init__.py"
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 125 | get_module_files | ref | function | for subfilepath in modutils.get_module_files(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 126 | dirname | ref | function | os.path.dirname(filepath), ignore_list, list_all=is_namespace
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 130 | _is_in_ignore_list_re | ref | function | if _is_in_ignore_list_re(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 131 | basename | ref | function | os.path.basename(subfilepath), ignore_list_re
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 132 | _is_in_ignore_list_re | ref | function | ) or _is_in_ignore_list_re(subfilepath, ignore_list_paths_re):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/expand_modules.py | pylint/lint/expand_modules.py | 135 | _modpath_from_file | ref | function | modpath = _modpath_from_file(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/parallel.py | pylint/lint/parallel.py | 33 | _worker_initialize | def | function | def _worker_initialize(
linter: bytes, arguments: None | str | Sequence[str] = None
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/parallel.py | pylint/lint/parallel.py | 47 | set_reporter | ref | function | _worker_linter.set_reporter(reporters.CollectingReporter())
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/parallel.py | pylint/lint/parallel.py | 47 | CollectingReporter | ref | function | _worker_linter.set_reporter(reporters.CollectingReporter())
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/parallel.py | pylint/lint/parallel.py | 51 | _patch_sys_path | ref | function | _patch_sys_path(arguments or ())
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/parallel.py | pylint/lint/parallel.py | 54 | _worker_check_single_file | def | function | def _worker_check_single_file(
file_item: FileItem,
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/parallel.py | pylint/lint/parallel.py | 70 | check_single_file_item | ref | function | _worker_linter.check_single_file_item(file_item)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/parallel.py | pylint/lint/parallel.py | 72 | get_checkers | ref | function | for checker in _worker_linter.get_checkers():
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/parallel.py | pylint/lint/parallel.py | 73 | get_map_data | ref | function | data = checker.get_map_data()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/parallel.py | pylint/lint/parallel.py | 78 | reset | ref | function | _worker_linter.reporter.reset()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/parallel.py | pylint/lint/parallel.py | 99 | _merge_mapreduce_data | def | function | def _merge_mapreduce_data(
linter: PyLinter,
all_mapreduce_data: defaultdict[int, list[defaultdict[str, list[Any]]]],
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/parallel.py | pylint/lint/parallel.py | 115 | get_checkers | ref | function | original_checkers = linter.get_checkers()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/parallel.py | pylint/lint/parallel.py | 120 | reduce_map_data | ref | function | checker.reduce_map_data(linter, collated_map_reduce_data[checker.name])
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/parallel.py | pylint/lint/parallel.py | 123 | check_parallel | def | function | def check_parallel(
linter: PyLinter,
jobs: int,
files: Iterable[FileItem],
arguments: None | str | Sequence[str] = None,
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/parallel.py | pylint/lint/parallel.py | 159 | imap_unordered | ref | function | ) in pool.imap_unordered(_worker_check_single_file, files):
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/parallel.py | pylint/lint/parallel.py | 161 | set_current_module | ref | function | linter.set_current_module(module, file_path)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/parallel.py | pylint/lint/parallel.py | 163 | handle_message | ref | function | linter.reporter.handle_message(msg)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/parallel.py | pylint/lint/parallel.py | 168 | close | ref | function | pool.close()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/parallel.py | pylint/lint/parallel.py | 171 | _merge_mapreduce_data | ref | function | _merge_mapreduce_data(linter, all_mapreduce_data)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/parallel.py | pylint/lint/parallel.py | 172 | merge_stats | ref | function | linter.stats = merge_stats([linter.stats] + all_stats)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 76 | GetAstProtocol | def | class | __call__ |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 83 | _read_stdin | def | function | def _read_stdin() -> str:
# See https://github.com/python/typeshed/pull/5623 for rationale behind assertion
assert isinstance(sys.stdin, TextIOWrapper)
sys.stdin = TextIOWrapper(sys.stdin.detach(), encoding="utf-8")
return sys.stdin.read()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 90 | _load_reporter_by_class | def | class | |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 92 | get_module_part | ref | function | module_part = astroid.modutils.get_module_part(qname)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 93 | load_module_from_name | ref | function | module = astroid.modutils.load_module_from_name(module_part)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 201 | PyLinter | def | class | __init__ option_groups option_groups load_default_plugins load_plugin_modules load_plugin_configuration _load_reporters _load_reporter_by_name set_reporter register_reporter report_order register_checker enable_fail_on_messages any_fail_on_issues disable_noerror_messages disable_reporters _parse_error_mode list_message... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 248 | set_reporter | ref | function | self.set_reporter(reporter)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 250 | set_reporter | ref | function | self.set_reporter(TextReporter())
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 250 | TextReporter | ref | function | self.set_reporter(TextReporter())
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 263 | FileState | ref | function | self.file_state = FileState()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 270 | LinterStats | ref | function | self.stats = LinterStats()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 273 | _make_linter_options | ref | function | self.options: Options = options + _make_linter_options(self)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 294 | MessageDefinitionStore | ref | function | self.msgs_store = MessageDefinitionStore()
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 311 | register_checker | ref | function | self.register_checker(self)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 314 | option_groups | def | function | def option_groups(self) -> tuple[tuple[str, str], ...]:
# TODO: 3.0: Remove deprecated attribute
warnings.warn(
"The option_groups attribute has been deprecated and will be removed in pylint 3.0",
DeprecationWarning,
)
return self._option_groups
@option_g... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 323 | option_groups | def | function | def option_groups(self, value: tuple[tuple[str, str], ...]) -> None:
warnings.warn(
"The option_groups attribute has been deprecated and will be removed in pylint 3.0",
DeprecationWarning,
)
self._option_groups = value
def load_default_plugins(self) -> None:
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 330 | load_default_plugins | def | function | def load_default_plugins(self) -> None:
checkers.initialize(self)
reporters.initialize(self)
def load_plugin_modules(self, modnames: list[str]) -> None:
"""Check a list pylint plugins modules, load and register them."""
for modname in modnames:
if modname in self._dy... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 331 | initialize | ref | function | checkers.initialize(self)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 332 | initialize | ref | function | reporters.initialize(self)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 334 | load_plugin_modules | def | function | def load_plugin_modules(self, modnames: list[str]) -> None:
"""Check a list pylint plugins modules, load and register them."""
for modname in modnames:
if modname in self._dynamic_plugins:
continue
self._dynamic_plugins.add(modname)
try:
... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 341 | load_module_from_name | ref | function | module = astroid.modutils.load_module_from_name(modname)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 342 | register | ref | function | module.register(self)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 346 | load_plugin_configuration | def | function | def load_plugin_configuration(self) -> None:
"""Call the configuration hook for plugins.
This walks through the list of plugins, grabs the "load_configuration"
hook, if exposed, and calls it to allow plugins to configure specific
settings.
"""
for modname in self._dy... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 355 | load_module_from_name | ref | function | module = astroid.modutils.load_module_from_name(modname)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 357 | load_configuration | ref | function | module.load_configuration(self)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 359 | add_message | ref | function | self.add_message("bad-plugin-value", args=(modname, e), line=0)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 361 | _load_reporters | def | function | def _load_reporters(self, reporter_names: str) -> None:
"""Load the reporters if they are available on _reporters."""
if not self._reporters:
return
sub_reporters = []
output_files = []
with contextlib.ExitStack() as stack:
for reporter_name in reporte... |
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 371 | _load_reporter_by_name | ref | function | reporter = self._load_reporter_by_name(reporter_name)
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 374 | enter_context | ref | function | output_file = stack.enter_context(
|
playground/2af25c45-9624-42e9-b1b3-5ecb19e13cc8/pylint/pylint/lint/pylinter.py | pylint/lint/pylinter.py | 381 | pop_all | ref | function | close_output_files = stack.pop_all().close
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.