(cls, plugin: MemOSPlugin)
| 38 | |
| 39 | @classmethod |
| 40 | def _is_plugin_enabled(cls, plugin: MemOSPlugin) -> bool: |
| 41 | disabled = cls._parse_plugin_names(os.getenv("MEMOS_DISABLED_PLUGINS")) |
| 42 | if plugin.name in disabled: |
| 43 | return False |
| 44 | |
| 45 | if plugin.enabled_by_default: |
| 46 | return True |
| 47 | |
| 48 | enabled = cls._parse_plugin_names(os.getenv("MEMOS_ENABLED_PLUGINS")) |
| 49 | return plugin.name in enabled |
| 50 | |
| 51 | @staticmethod |
| 52 | def _select_plugin_winners( |
no test coverage detected