project_config.plugins package
Project-config built-in plugins.
These plugins are not required to be specified in plugins
properties of styles.
- exception project_config.plugins.InvalidPluginFunction(message: str)[source]
Bases:
project_config.exceptions.ProjectConfigException
Exception raised when a method of a plugin class is not valid.
- class project_config.plugins.Plugins(prepare_all: bool = False)[source]
Bases:
object
Plugins wrapper.
Performs all the logic concerning to plugins.
Plugins modules are loaded on demand, only when an action specified by a rule requires it, and cached for later demanding from rules.
- get_function_for_action(action: str) Callable[[Any, project_config.tree.Tree, project_config.types.Rule, Optional[project_config.types.ActionsContext]], Iterator[Tuple[str, Any]]] [source]
Get the function that performs an action given her name.