We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1461be commit 3ba25d6Copy full SHA for 3ba25d6
.github/workflows/matchers/mypy.json
@@ -0,0 +1,16 @@
1
+{
2
+ "problemMatcher": [
3
+ {
4
+ "owner": "mypy",
5
+ "pattern": [
6
7
+ "regexp": "^(.+):(\\d+):\\s(error|warning):\\s(.+)$",
8
+ "file": 1,
9
+ "line": 2,
10
+ "severity": 3,
11
+ "message": 4
12
+ }
13
+ ]
14
15
16
+}
.github/workflows/mypy.yaml
@@ -32,4 +32,5 @@ jobs:
32
pip install types-setuptools
33
- name: Mypy
34
run: |
35
- tools/mypy.sh
+ echo "::add-matcher::.github/workflows/matchers/mypy.json"
36
+ tools/mypy.sh 1
tools/mypy.sh
@@ -2,6 +2,10 @@
CI=${1:-0}
+if [ $CI -eq 1 ]; then
+ set -e
+fi
+
run_mypy() {
echo "Running mypy on $1"
if [ $CI -eq 1 ] && [ -z "$1" ]; then
0 commit comments