flakeheaven._patched._plugins¶
- class flakeheaven._patched._plugins.FlakeHeavenCheckers(local_plugins=None)[source]¶
Bases:
flake8.plugins.manager.Checkers
Initialize the plugin type’s manager.
- Parameters
local_plugins (list) – Plugins from config file instead of entry-points
- class flakeheaven._patched._plugins.FlakeHeavenPluginManager(namespace, local_plugins=None)[source]¶
Bases:
flake8.plugins.manager.PluginManager
Initialize the manager.
- Parameters
namespace (str) – Namespace of the plugins to manage, e.g., ‘flake8.extension’.
local_plugins (list) – Plugins from config (as “X = path.to:Plugin” strings).
- map(func, *args, **kwargs)[source]¶
Call
func
with the plugin and *args and **kwargs after.This yields the return value from
func
for each plugin.- Parameters
func (collections.Callable) –
Function to call with each plugin. Signature should at least be:
def myfunc(plugin): pass
Any extra positional or keyword arguments specified with map will be passed along to this function after the plugin. The plugin passed is a
Plugin
.args – Positional arguments to pass to
func
after each plugin.kwargs – Keyword arguments to pass to
func
after each plugin.