Method: pylint.lint.pylinter.PyLinter.load_plugin_modules
Calls: 380, Exceptions: 6, Paths: 4Back
Path 1: 251 calls (0.66)
[] (251)
1def load_plugin_modules(self, modnames: list[str]) -> None:
2 """Check a list of pylint plugins modules, load and register them.
3
4 If a module cannot be loaded, never try to load it again and instead
5 store the error message for later use in ``load_plugin_configuration``
6 below.
7 """
8 for modname in modnames:
9 if modname in self._dynamic_plugins:
10 continue
11 try:
12 module = astroid.modutils.load_module_from_name(modname)
13 module.register(self)
14 self._dynamic_plugins[modname] = module
15 except ModuleNotFoundError as mnf_e:
16 self._dynamic_plugins[modname] = mnf_e
Path 2: 122 calls (0.32)
['pylint.extensions.docparams'] (40) ['pylint.extensions.check_elif', 'pylint.extensions.bad_builtin', 'pylint.extensions.docparams', 'pylint.extensio...
1def load_plugin_modules(self, modnames: list[str]) -> None:
2 """Check a list of pylint plugins modules, load and register them.
3
4 If a module cannot be loaded, never try to load it again and instead
5 store the error message for later use in ``load_plugin_configuration``
6 below.
7 """
8 for modname in modnames:
9 if modname in self._dynamic_plugins:
10 continue
11 try:
12 module = astroid.modutils.load_module_from_name(modname)
13 module.register(self)
14 self._dynamic_plugins[modname] = module
15 except ModuleNotFoundError as mnf_e:
16 self._dynamic_plugins[modname] = mnf_e
Path 3: 6 calls (0.02)
['pylint_flask'] (2) ['copy_dummy'] (2) ['pylint.extensions.check_does_not_exists_in_venv'] (1) ['pylint_websockets'] (1)
ModuleNotFoundError (6)
1def load_plugin_modules(self, modnames: list[str]) -> None:
2 """Check a list of pylint plugins modules, load and register them.
3
4 If a module cannot be loaded, never try to load it again and instead
5 store the error message for later use in ``load_plugin_configuration``
6 below.
7 """
8 for modname in modnames:
9 if modname in self._dynamic_plugins:
10 continue
11 try:
12 module = astroid.modutils.load_module_from_name(modname)
13 module.register(self)
14 self._dynamic_plugins[modname] = module
15 except ModuleNotFoundError as mnf_e:
16 self._dynamic_plugins[modname] = mnf_e
Path 4: 1 calls (0.0)
['copy_dummy'] (1)
1def load_plugin_modules(self, modnames: list[str]) -> None:
2 """Check a list of pylint plugins modules, load and register them.
3
4 If a module cannot be loaded, never try to load it again and instead
5 store the error message for later use in ``load_plugin_configuration``
6 below.
7 """
8 for modname in modnames:
9 if modname in self._dynamic_plugins:
10 continue
11 try:
12 module = astroid.modutils.load_module_from_name(modname)
13 module.register(self)
14 self._dynamic_plugins[modname] = module
15 except ModuleNotFoundError as mnf_e:
16 self._dynamic_plugins[modname] = mnf_e