From 22ffcb1bb4b1b45a430b4bb8df23983ad983b5be Mon Sep 17 00:00:00 2001 From: houndlord <45179481+houndlord@users.noreply.github.com> Date: Sat, 30 Sep 2023 13:54:19 +0200 Subject: [PATCH 01/10] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 37af784..0b13356 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,14 +1,7 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks repos: - -- repo: local +- repo: https://github.com/psf/black + rev: 22.10.0 hooks: - id: black - name: black - entry: bash -c 'pipenv run black $@' -- - language: system - types: [python] - args: [] - exclude: ^(.+)/migrations/.*\.py - \ No newline at end of file From 3c0a9a5183ecdb54879e44ef7ae4f0d50e0af86d Mon Sep 17 00:00:00 2001 From: houndlord <45179481+houndlord@users.noreply.github.com> Date: Sat, 30 Sep 2023 13:54:59 +0200 Subject: [PATCH 02/10] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0b13356..564c29c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,6 +2,6 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 23.9.1 hooks: - id: black From 16f900779b53906ca781b22556a3492abc21e78e Mon Sep 17 00:00:00 2001 From: houndlord <45179481+houndlord@users.noreply.github.com> Date: Sat, 30 Sep 2023 13:58:24 +0200 Subject: [PATCH 03/10] Update .pre-commit-config.yaml --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 564c29c..afb840b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -5,3 +5,4 @@ repos: rev: 23.9.1 hooks: - id: black + exclude: ^(.+)/migrations/.*\.py From 2d13beada67b724656a54b866b526d2fc9110e9a Mon Sep 17 00:00:00 2001 From: houndlord <45179481+houndlord@users.noreply.github.com> Date: Sat, 30 Sep 2023 14:10:04 +0200 Subject: [PATCH 04/10] Update formatting_testing.yml --- .github/workflows/formatting_testing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/formatting_testing.yml b/.github/workflows/formatting_testing.yml index 5f9c37c..a9044b6 100644 --- a/.github/workflows/formatting_testing.yml +++ b/.github/workflows/formatting_testing.yml @@ -19,4 +19,4 @@ jobs: uses: actions/setup-python@v2 - name: Run pre-commit - uses: pre-commit/action@v2.0.0 + uses: pre-commit/action@v3.0.0 From 2c79688769dad3a3da62b9ac531b352db5d4a04f Mon Sep 17 00:00:00 2001 From: houndlord <45179481+houndlord@users.noreply.github.com> Date: Sat, 30 Sep 2023 14:12:40 +0200 Subject: [PATCH 05/10] Update formatting_testing.yml --- .github/workflows/formatting_testing.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/formatting_testing.yml b/.github/workflows/formatting_testing.yml index a9044b6..b332559 100644 --- a/.github/workflows/formatting_testing.yml +++ b/.github/workflows/formatting_testing.yml @@ -19,4 +19,5 @@ jobs: uses: actions/setup-python@v2 - name: Run pre-commit - uses: pre-commit/action@v3.0.0 + run: pre-commit run --show-diff-on-failure --color=always + shell: bash From a72d70aec3a4d267102fb2a11dbbca6c1708e4ff Mon Sep 17 00:00:00 2001 From: houndlord <45179481+houndlord@users.noreply.github.com> Date: Sat, 30 Sep 2023 14:20:13 +0200 Subject: [PATCH 06/10] Update formatting_testing.yml --- .github/workflows/formatting_testing.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/formatting_testing.yml b/.github/workflows/formatting_testing.yml index b332559..f67efa8 100644 --- a/.github/workflows/formatting_testing.yml +++ b/.github/workflows/formatting_testing.yml @@ -18,6 +18,10 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 - - name: Run pre-commit - run: pre-commit run --show-diff-on-failure --color=always + - name: pre-commit + - run: python -m pip install pre-commit + shell: bash + - run: python -m pip freeze --local + shell: bash + - run: pre-commit run --show-diff-on-failure --color=always shell: bash From 5b6d5ca076b64893f32c376f506f51a6295ab474 Mon Sep 17 00:00:00 2001 From: houndlord <45179481+houndlord@users.noreply.github.com> Date: Sat, 30 Sep 2023 14:20:34 +0200 Subject: [PATCH 07/10] Update app.py --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 3e8e562..2e04025 100644 --- a/app.py +++ b/app.py @@ -5,6 +5,7 @@ MessageHandler, CallbackQueryHandler, ) +import time from src.custom_filters import filter_bot_added from src.logging import tg_logger from src import handlers @@ -55,4 +56,4 @@ def main(): if __name__ == "__main__": - main() \ No newline at end of file + main() From 831007ff135d4fb1ecd4c1ee4cc5991a9c4471d1 Mon Sep 17 00:00:00 2001 From: houndlord <45179481+houndlord@users.noreply.github.com> Date: Sat, 30 Sep 2023 14:20:50 +0200 Subject: [PATCH 08/10] Update app.py --- app.py | 1 - 1 file changed, 1 deletion(-) diff --git a/app.py b/app.py index 2e04025..b7c373e 100644 --- a/app.py +++ b/app.py @@ -5,7 +5,6 @@ MessageHandler, CallbackQueryHandler, ) -import time from src.custom_filters import filter_bot_added from src.logging import tg_logger from src import handlers From c807757999793ef0472ca77edc974c3240ffd75c Mon Sep 17 00:00:00 2001 From: houndlord <45179481+houndlord@users.noreply.github.com> Date: Sat, 30 Sep 2023 14:21:02 +0200 Subject: [PATCH 09/10] Update app.py --- app.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app.py b/app.py index b7c373e..2e04025 100644 --- a/app.py +++ b/app.py @@ -5,6 +5,7 @@ MessageHandler, CallbackQueryHandler, ) +import time from src.custom_filters import filter_bot_added from src.logging import tg_logger from src import handlers From 9863bea41b8dbd9fa453e2214b5bfaaa8d76eb74 Mon Sep 17 00:00:00 2001 From: houndlord <45179481+houndlord@users.noreply.github.com> Date: Sat, 30 Sep 2023 14:25:14 +0200 Subject: [PATCH 10/10] Update formatting_testing.yml --- .github/workflows/formatting_testing.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/formatting_testing.yml b/.github/workflows/formatting_testing.yml index f67efa8..39ee349 100644 --- a/.github/workflows/formatting_testing.yml +++ b/.github/workflows/formatting_testing.yml @@ -12,16 +12,18 @@ jobs: name: testing steps: - - name: Checkout repository + - name: checkout repository uses: actions/checkout@v2 - - name: Set up Python + - name: set up Python uses: actions/setup-python@v2 - - name: pre-commit - - run: python -m pip install pre-commit + - name: install pre-commit + run: python -m pip install pre-commit shell: bash - - run: python -m pip freeze --local + - name: pip freeze + run: python -m pip freeze --local shell: bash + - name: run pre-commit - run: pre-commit run --show-diff-on-failure --color=always shell: bash