diff --git a/.github/flake8-problem-matcher.json b/.github/flake8-problem-matcher.json new file mode 100644 index 000000000..52f94e05e --- /dev/null +++ b/.github/flake8-problem-matcher.json @@ -0,0 +1,16 @@ +{ + "problemMatcher": [ + { + "owner": "flake8", + "pattern": [ + { + "regexp": "^(.*?):(\\d+):(\\d+): (.*)$", + "file": 1, + "line": 2, + "column": 3, + "message": 4 + } + ] + } + ] +} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 08e7548f2..48d43d059 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -65,9 +65,6 @@ jobs: lint: runs-on: ubuntu-latest - env: - PY_COLORS: 1 - steps: - uses: actions/checkout@v2 @@ -81,5 +78,8 @@ jobs: python -m pip install --upgrade pip python -m pip install tox sphinx + - name: Add problem matcher + run: echo "::add-matcher::.github/flake8-problem-matcher.json" + - name: Lint with flake8 run: tox -e py-lint