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 1/4] 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 2/4] 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 3/4] 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 698904e4df34b037c0325dd3c0923175bdbf7e7d Mon Sep 17 00:00:00 2001 From: houndlord <45179481+houndlord@users.noreply.github.com> Date: Sat, 30 Sep 2023 14:01:59 +0200 Subject: [PATCH 4/4] 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()