From 7b1be418e1ffbfdcfc930f3c39169512744580a2 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Wed, 11 Oct 2023 12:00:05 -0400 Subject: [PATCH] fix: plugin wrapper repr not helpful Signed-off-by: Henry Schreiner --- src/validate_pyproject/plugins/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/validate_pyproject/plugins/__init__.py b/src/validate_pyproject/plugins/__init__.py index 56d22a1..d2a9022 100644 --- a/src/validate_pyproject/plugins/__init__.py +++ b/src/validate_pyproject/plugins/__init__.py @@ -47,6 +47,9 @@ def help_text(self) -> str: return "" return Template(tpl).safe_substitute(tool=self.tool, id=self.id) + def __repr__(self) -> str: + return f"{self.__class__.__name__}({self.tool!r}, {self._load_fn!r})" + def iterate_entry_points(group=ENTRYPOINT_GROUP) -> Iterable[EntryPoint]: """Produces a generator yielding an EntryPoint object for each plugin registered