From 16e1cade5721d02e6be06f55dfc2e35ffbab0249 Mon Sep 17 00:00:00 2001 From: Klemek Date: Fri, 9 Apr 2021 00:25:24 +0200 Subject: [PATCH 1/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index dd5f426..f635e48 100644 --- a/README.md +++ b/README.md @@ -192,7 +192,7 @@ The function must be exactly named after the event ```python async def on_ready() -> bool: print("on_ready") - return False # if True is returned, prevent miniscord handling of the event + return True # if False is returned, prevent miniscord's handling of the event bot.register_event(on_ready) ``` From daaededd19d6f9baf23c4d023bd82ee274cbc0b0 Mon Sep 17 00:00:00 2001 From: Klemek Date: Fri, 9 Apr 2021 00:42:34 +0200 Subject: [PATCH 2/3] Update python.yml --- .github/workflows/python.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index a50177e..55f9465 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -1,4 +1,4 @@ -name: Test +name: Python on: ["push", "pull_request"] @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.8, 3.9] + python-version: [3.7, 3.8, 3.9] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} @@ -49,4 +49,4 @@ jobs: run: coveralls env: COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From aba1b10ef1ad581c9999f4accf6620d528195e5a Mon Sep 17 00:00:00 2001 From: Klemek Date: Fri, 9 Apr 2021 00:46:19 +0200 Subject: [PATCH 3/3] Update python.yml --- .github/workflows/python.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 55f9465..17da2e0 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -17,16 +17,13 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - python -m pip install flake8 black + python -m pip install flake8 - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Code style with black - run: | - black --check test: runs-on: ubuntu-latest strategy: