diff options
| -rw-r--r-- | .github/workflows/lint.yaml | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 5678f53..642db62 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -65,3 +65,10 @@ jobs:        - name: Show pre-commit log          if: always() && steps.run-pre-commit-hooks.outcome != 'success'          run: cat "${PRE_COMMIT_HOME}/pre-commit.log" + +      # Output linting errors in the format GitHub Actions recognises for +      # annotations. +      - name: Run flake8 +        run: >- +          flake8 --format "::error +          file=%(path)s,line=%(row)d,col=%(col)d::[flake8] %(code)s: %(text)s" | 
