Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 11 additions & 4 deletions .github/workflows/formatting_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
10 changes: 2 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -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

3 changes: 2 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -55,4 +56,4 @@ def main():


if __name__ == "__main__":
main()
main()