diff --git a/.github/annotations/pylint.json b/.github/annotations/pylint.json new file mode 100644 index 000000000..649e1d09b --- /dev/null +++ b/.github/annotations/pylint.json @@ -0,0 +1,32 @@ +{ + "problemMatcher": [ + { + "severity": "error", + "pattern": [ + { + "regexp": "^([^:]+):(\\d+):(\\d+): (E\\d+): \\033\\[[\\d;]+m([^\\033]+).*$", + "file": 1, + "line": 2, + "column": 3, + "code": 4, + "message": 5 + } + ], + "owner": "pylint-error" + }, + { + "severity": "warning", + "pattern": [ + { + "regexp": "^([^:]+):(\\d+):(\\d+): ([A-DF-Z]\\d+): \\033\\[[\\d;]+m([^\\033]+).*$", + "file": 1, + "line": 2, + "column": 3, + "code": 4, + "message": 5 + } + ], + "owner": "pylint-warning" + } + ] +} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3c8214d14..9b93e28cd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -113,6 +113,10 @@ jobs: restore-keys: | ${{ runner.os }}-pip- + - name: Add annotations matchers + run: | + echo "::add-matcher::.github/annotations/pylint.json" + - name: Lint run: | make -C api lint