Skip to content

py312 v2

py312 v2 #298

Workflow file for this run

name: "Black"
on: [ 'pull_request' ]
jobs:
black:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: "Check files using the black formatter"
uses: rickstaa/action-black@v1
id: action_black
with:
black_args: '.'
- name: "Annotate diff changes using reviewdog"
if: steps.action_black.outputs.is_formatted == 'true'
uses: reviewdog/action-suggester@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tool_name: "black"