-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Code review fixes * Code review fixes * Removes redundant line * workflow fix * workflow fix * workflow fix * workflow fix * bug fix
- Loading branch information
1 parent
80395cc
commit 35f0d0f
Showing
17 changed files
with
117 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
from mlnotify.mlnotify import end, plugins_manager, start # type: ignore # noqa: F401 | ||
from mlnotify.mlnotify import plugin_manager | ||
from mlnotify.plugins.base import BasePlugin | ||
|
||
__all__ = [start, end, plugins_manager, BasePlugin] | ||
start = plugin_manager.run_before | ||
end = plugin_manager.run_after | ||
|
||
__all__ = [start, end, plugin_manager, BasePlugin] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
from mlnotify.hooks import apply_hooks | ||
from mlnotify.plugin_manager import PluginManager | ||
from mlnotify.plugins.notify import NotifyPlugin | ||
from mlnotify.plugins_manager import PluginsManager | ||
|
||
plugins_manager = PluginsManager() | ||
plugins_manager.register_plugin(NotifyPlugin()) | ||
|
||
apply_hooks(before=plugins_manager.run_before, after=plugins_manager.run_after) | ||
def init_plugin_manager(): | ||
""" | ||
Initialize the plugin manager. | ||
""" | ||
plugin_manager = PluginManager() | ||
plugin_manager.register_plugin(NotifyPlugin()) | ||
|
||
start = plugins_manager.run_before | ||
end = plugins_manager.run_after | ||
apply_hooks(before=plugin_manager.run_before, after=plugin_manager.run_after) | ||
|
||
return plugin_manager | ||
|
||
|
||
plugin_manager = init_plugin_manager() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.