Skip to content

Commit

Permalink
fix: plugin wrapper repr not helpful
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
  • Loading branch information
henryiii committed Oct 11, 2023
1 parent 67faa9b commit 7b1be41
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/validate_pyproject/plugins/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7b1be41

Please sign in to comment.