Skip to content

Commit

Permalink
Bump pre-commit docformatter to 1.6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
unode committed May 9, 2023
1 parent d4fd2b9 commit d503915
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ repos:
- "auto"
- repo: https://github.com/myint/docformatter
# Formats docstrings following PEP 257
rev: v1.6.0
rev: v1.6.5
hooks:
- id: docformatter
args:
Expand Down
4 changes: 3 additions & 1 deletion mmpy_bot/plugins/example.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,10 @@ def cancel_jobs(self, message: Message):
@listen_to("^sleep ([0-9]+)$", needs_mention=True)
async def sleep_reply(self, message: Message, seconds: str):
"""Sleeps for the specified number of seconds.
Arguments:
- seconds: How many seconds to sleep for."""
- seconds: How many seconds to sleep for.
"""
self.driver.reply_to(message, f"Okay, I will be waiting {seconds} seconds.")
await asyncio.sleep(int(seconds))
self.driver.reply_to(message, "Done!")

0 comments on commit d503915

Please sign in to comment.