25 lines
484 B
Python
25 lines
484 B
Python
from __future__ import annotations
|
|
|
|
from abc import abstractmethod
|
|
from typing import TYPE_CHECKING
|
|
|
|
from poetry.plugins.base_plugin import BasePlugin
|
|
|
|
|
|
if TYPE_CHECKING:
|
|
from cleo.io.io import IO
|
|
|
|
from poetry.poetry import Poetry
|
|
|
|
|
|
class Plugin(BasePlugin):
|
|
"""
|
|
Generic plugin not related to the console application.
|
|
"""
|
|
|
|
group = "poetry.plugin"
|
|
|
|
@abstractmethod
|
|
def activate(self, poetry: Poetry, io: IO) -> None:
|
|
raise NotImplementedError()
|