Skip to content

Commit 7314f53

Browse files
committed
Add github action to run mypy
Signed-off-by: Martin Hickey <[email protected]>
1 parent 2d1d91d commit 7314f53

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ jobs:
4747
commands: |
4848
echo "::add-matcher::.github/workflows/matchers/pylint.json"
4949
tox -e lint
50+
- name: "mypy"
51+
commands: |
52+
echo "::add-matcher::.github/workflows/matchers/mypy.json"
53+
tox -e mypy
5054
5155
steps:
5256
- name: "Harden Runner"
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
}

0 commit comments

Comments
 (0)