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
13 changes: 12 additions & 1 deletion .github/workflows/formatting_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,18 @@ jobs:
- name: pip freeze
run: python -m pip freeze --local
shell: bash

- name: Get changed files
id: changed-files
run: |
echo "::set-output name=files::$(git diff --name-only origin/${{ github.event.pull_request.base.ref }}...${{ github.event.pull_request.head.sha }})"

- name: run pre-commit
run: pre-commit run --color=always --show-diff-on-failure
run: |
FILES="${{ steps.changed-files.outputs.files }}"
if [ -n "$FILES" ]; then
echo "$FILES" | xargs pre-commit run --files
else
echo "No files to check."
fi
shell: bash
1 change: 1 addition & 0 deletions src/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,4 @@

config.dictConfig(log_config)
tg_logger = logging.getLogger("wachter_telegram_logger")
print("MMM")