A high-throughput and memory-efficient inference and serving engine for LLMs
Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git
Synced Nov 16, 09:30 UTC
[CI/Build] Add error matching config for mypy (#9512)
Russell Bryant committed
Oct 18, 2024 at 15:17 UTC
67a7e5ef384206f20294ce9bed2fa8953c83058a
3 files changed
+22
-1
.github/workflows/matchers/mypy.json
new
+16
@@ -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
+2
-1
@@ -32,4 +32,5 @@ jobs:
32
pip install types-setuptools
33
- name: Mypy
34
run: |
35
- tools/mypy.sh
35
+ echo "::add-matcher::.github/workflows/matchers/mypy.json"
36
+ tools/mypy.sh 1
tools/mypy.sh
+4
@@ -2,6 +2,10 @@
2
3
CI=${1:-0}
4
5
+if [ $CI -eq 1 ]; then
6
+ set -e
7
+fi
8
+
9
run_mypy() {
10
echo "Running mypy on $1"
11
if [ $CI -eq 1 ] && [ -z "$1" ]; then