Merge pull request #264 from alan-turing-institute/plotting #476
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: black action | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
linter_name: | |
name: runner / black | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
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: | |
tool_name: blackfmt |