Skip to content

Commit

Permalink
Use black official image
Browse files Browse the repository at this point in the history
  • Loading branch information
Diviloper committed May 12, 2024
1 parent a301f6e commit 5b8eb7c
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/black.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Lint code with black
name: Lint code with Black

on:
push:
Expand All @@ -8,20 +8,13 @@ on:

jobs:
lint:
name: Check code formatting with black
name: Lint code with Black
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Check files using the black formatter
uses: rickstaa/action-black@v1
id: action_black
- name: Run Black
uses: psf/black@stable
with:
black_args: "."

- name: Annotate diff changes using reviewdog
if: steps.action_black.outputs.is_formatted == 'true'
uses: reviewdog/action-suggester@v1
with:
tool_name: blackfmt
version: "~= 24.0"

0 comments on commit 5b8eb7c

Please sign in to comment.