Skip to content

Commit

Permalink
Add repr to plugin wrapper (#114)
Browse files Browse the repository at this point in the history
fix: plugin wrapper repr not helpful
  • Loading branch information
abravalheri committed Oct 12, 2023
2 parents 67faa9b + 55ee081 commit 0ec8682
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.id})"


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 0ec8682

Please sign in to comment.