Skip to content

Commit

Permalink
Merge pull request #335 from LenaWil/black-geen-meldingen
Browse files Browse the repository at this point in the history
Turn the comments from black off
  • Loading branch information
EricTRL authored Sep 29, 2023
2 parents 308b47e + ce33fec commit 70e3d00
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions .github/workflows/black.yml → .github/workflows/linters.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 != ''

0 comments on commit 70e3d00

Please sign in to comment.