diff --git a/.github/matchers/ruff.json b/.github/matchers/ruff.json new file mode 100644 index 0000000..927d1ce --- /dev/null +++ b/.github/matchers/ruff.json @@ -0,0 +1,16 @@ +{ + "problemMatcher": [ + { + "owner": "ruff", + "pattern": [ + { + "regexp": "^([^:]+):(\\d+):(\\d+): \\s(.+)$", + "file": 1, + "line": 2, + "column": 3, + "message": 4 + } + ] + } + ] +} diff --git a/.github/matchers/unbehead.json b/.github/matchers/unbehead.json new file mode 100644 index 0000000..814e103 --- /dev/null +++ b/.github/matchers/unbehead.json @@ -0,0 +1,14 @@ +{ + "problemMatcher": [ + { + "owner": "unbehead", + "pattern": [ + { + "regexp": "^((?:Missing|Incorrect) header) in (.+)$", + "message": 1, + "file": 2 + } + ] + } + ] +} diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml index 1883cec..b068d91 100644 --- a/.github/workflows/linting.yaml +++ b/.github/workflows/linting.yaml @@ -10,6 +10,9 @@ on: - devel - master +env: + NO_COLORS: true + jobs: setup: runs-on: ubuntu-22.04 @@ -47,4 +50,8 @@ jobs: poetry install - name: Run tests run: | + echo "::add-matcher::.github/matchers/ruff.json" + echo "::add-matcher::.github/matchers/unbehead.json" poetry run -- make lint + echo "::remove-matcher owner=unbehead::" + echo "::remove-matcher owner=ruff::"