From 19d01063b2265b690d2b8b67d6eadcb6a2f0dfe9 Mon Sep 17 00:00:00 2001 From: Lena Wildervanck Date: Sun, 24 Sep 2023 20:31:48 +0200 Subject: [PATCH 1/2] turn comments off --- .github/workflows/black.yml | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml index 80066c94..b36a7002 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/black.yml @@ -20,20 +20,6 @@ jobs: # formatting all the files, since filtering didn’t work, and then filtering them manually # src: "${{ steps.changed-files.outputs.all_changed_files }}" options: "" - - name: Comment the git pr - uses: reviewdog/action-suggester@v1 - if: steps.changed-files.outputs.all_changed_files != '' - with: - tool_name: blackfmt - fail_on_error: false - continue-on-error: true - - name: format files again - uses: psf/black@stable - if: steps.changed-files.outputs.all_changed_files != '' - with: - # formatting all the files, since filtering didn’t work, and then filtering them manually - # src: "${{ steps.changed-files.outputs.all_changed_files }}" - options: "" - name: (Files that are incorrectly formatted) ∩ (Files that have been changed in this commit or pull request) run: git diff --exit-code -- ${{ steps.changed-files.outputs.all_changed_files }} if: steps.changed-files.outputs.all_changed_files != '' From ce33fec7e2773dc20a9a9e944a527a4c878a1214 Mon Sep 17 00:00:00 2001 From: Lena Wildervanck Date: Sun, 24 Sep 2023 20:37:26 +0200 Subject: [PATCH 2/2] Rename linter --- .github/workflows/{black.yml => linters.yml} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename .github/workflows/{black.yml => linters.yml} (96%) diff --git a/.github/workflows/black.yml b/.github/workflows/linters.yml similarity index 96% rename from .github/workflows/black.yml rename to .github/workflows/linters.yml index b36a7002..4b5d8683 100644 --- a/.github/workflows/black.yml +++ b/.github/workflows/linters.yml @@ -1,10 +1,10 @@ -name: Lint Black main +name: Linters # Without review-dog… maybe it’s a bit of waste to make them run twice, but anyway. on: [push, pull_request] jobs: - lint-changed: + black-changed: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3