Merge pull request #3714 from jackwilsdon/problem-matcher

Add flake8 problem matcher
This commit is contained in:
Jack Wilsdon 2020-08-02 23:32:56 +01:00 committed by GitHub
commit 78d8e31eeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 3 deletions

16
.github/flake8-problem-matcher.json vendored Normal file
View file

@ -0,0 +1,16 @@
{
"problemMatcher": [
{
"owner": "flake8",
"pattern": [
{
"regexp": "^(.*?):(\\d+):(\\d+): (.*)$",
"file": 1,
"line": 2,
"column": 3,
"message": 4
}
]
}
]
}

View file

@ -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