aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2021-12-27 11:04:46 -0800
committerGravatar MarkKoz <[email protected]>2021-12-27 11:04:46 -0800
commitd389d80a1d8de28c7b70ab372490a0e41c1760af (patch)
treee74630ac92f658155133cf9b2e469977b4d51ef2
parentCI: run linters outside the container (diff)
CI: fix flake8 being skipped
-rw-r--r--.github/workflows/lint.yaml7
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"