From 0e8c99b1d2502e298364516f9d1f0acecadb3453 Mon Sep 17 00:00:00 2001 From: BoYanZh Date: Fri, 27 May 2022 12:28:33 +0800 Subject: [PATCH] fix: typo --- docs/index.md | 2 +- joint_teapot/teapot.py | 2 +- joint_teapot/workers/mattermost.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/index.md b/docs/index.md index 83e9d79..b2fd2b7 100644 --- a/docs/index.md +++ b/docs/index.md @@ -15,7 +15,7 @@ source env/Scripts/activate # each time when you need this venv ```bash pip3 install -e . -cp .env.exmaple .env && vi .env # configure environment +cp .env.example .env && vi .env # configure environment joint-teapot --help ``` diff --git a/joint_teapot/teapot.py b/joint_teapot/teapot.py index 5ef7d06..1aed329 100644 --- a/joint_teapot/teapot.py +++ b/joint_teapot/teapot.py @@ -16,7 +16,7 @@ def for_all_methods( ) -> Callable[[_T], _T]: @functools.wraps(decorator) def decorate(cls: Any) -> Any: - for attr in cls.__dict__: # there's propably a better way to do this + for attr in cls.__dict__: # there's probably a better way to do this if callable(getattr(cls, attr)): setattr(cls, attr, decorator(getattr(cls, attr))) return cls diff --git a/joint_teapot/workers/mattermost.py b/joint_teapot/workers/mattermost.py index de95457..4110914 100644 --- a/joint_teapot/workers/mattermost.py +++ b/joint_teapot/workers/mattermost.py @@ -79,7 +79,7 @@ class Mattermost: logger.info(f"Added member {member} to channel {group_name}") def create_webhooks_for_repos(self, repos: List[str], gitea: Gitea) -> None: - # one group corresponds to one repo so these concepts can be used interchangably + # one group corresponds to one repo so these concepts can be used interchangeably for repo in repos: logger.info(f"Creating webhooks for repo {gitea.org_name}/{repo}") try: