Skip to content

Commit

Permalink
Make docformatter happy
Browse files Browse the repository at this point in the history
  • Loading branch information
unode committed May 31, 2021
1 parent 33f96a9 commit b6fd867
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mmpy_bot/plugins/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ async def call_function(


class HelpPlugin(Plugin):
"""Provide a `help` function that lists functions provided by all plygins"""
"""Provide a `help` function that lists functions provided by all plygins."""

def __init__(
self,
Expand Down Expand Up @@ -130,7 +130,7 @@ def custom_sort(rec):

@listen_to("^help$", needs_mention=True)
async def help(self, message: Message):
"""Shows this help information"""
"""Shows this help information."""
self.driver.reply_to(message, self.get_help_string(), direct=self.direct_help)


Expand Down Expand Up @@ -200,7 +200,7 @@ def initialize_manager(self, driver: Driver, settings: Settings):
)

def _split_docstring(self, doc):
"""Split docstring into first line (header) and full body"""
"""Split docstring into first line (header) and full body."""
return (doc.split("\n", 1)[0], doc) if doc is not None else ("", "")

def _generate_plugin_help(
Expand All @@ -209,7 +209,7 @@ def _generate_plugin_help(
help_type: str,
items: ItemsView[re.Pattern, List[Function]],
):
"""Build PluginHelpInfo objects from plugin and function information
"""Build PluginHelpInfo objects from plugin and function information.
Returns one PluginHelpInfo instance for every listener (message or webhook)
"""
Expand Down

0 comments on commit b6fd867

Please sign in to comment.