diff --git a/.github/workflows/formatting_testing.yml b/.github/workflows/formatting_testing.yml index 5f9c37c..39ee349 100644 --- a/.github/workflows/formatting_testing.yml +++ b/.github/workflows/formatting_testing.yml @@ -12,11 +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: Run pre-commit - uses: pre-commit/action@v2.0.0 + - name: install pre-commit + run: python -m pip install pre-commit + shell: bash + - 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 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 37af784..afb840b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,14 +1,8 @@ # 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: 23.9.1 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 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()