Unverified Commit 67a7e5ef authored by Russell Bryant's avatar Russell Bryant Committed by GitHub
Browse files

[CI/Build] Add error matching config for mypy (#9512)

parent 051eaf6d
{
"problemMatcher": [
{
"owner": "mypy",
"pattern": [
{
"regexp": "^(.+):(\\d+):\\s(error|warning):\\s(.+)$",
"file": 1,
"line": 2,
"severity": 3,
"message": 4
}
]
}
]
}
...@@ -32,4 +32,5 @@ jobs: ...@@ -32,4 +32,5 @@ jobs:
pip install types-setuptools pip install types-setuptools
- name: Mypy - name: Mypy
run: | run: |
tools/mypy.sh echo "::add-matcher::.github/workflows/matchers/mypy.json"
tools/mypy.sh 1
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
CI=${1:-0} CI=${1:-0}
if [ $CI -eq 1 ]; then
set -e
fi
run_mypy() { run_mypy() {
echo "Running mypy on $1" echo "Running mypy on $1"
if [ $CI -eq 1 ] && [ -z "$1" ]; then if [ $CI -eq 1 ] && [ -z "$1" ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment