Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
67a7e5ef
Unverified
Commit
67a7e5ef
authored
Oct 18, 2024
by
Russell Bryant
Committed by
GitHub
Oct 18, 2024
Browse files
[CI/Build] Add error matching config for mypy (#9512)
parent
051eaf6d
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
1 deletion
+22
-1
.github/workflows/matchers/mypy.json
.github/workflows/matchers/mypy.json
+16
-0
.github/workflows/mypy.yaml
.github/workflows/mypy.yaml
+2
-1
tools/mypy.sh
tools/mypy.sh
+4
-0
No files found.
.github/workflows/matchers/mypy.json
0 → 100644
View file @
67a7e5ef
{
"problemMatcher"
:
[
{
"owner"
:
"mypy"
,
"pattern"
:
[
{
"regexp"
:
"^(.+):(
\\
d+):
\\
s(error|warning):
\\
s(.+)$"
,
"file"
:
1
,
"line"
:
2
,
"severity"
:
3
,
"message"
:
4
}
]
}
]
}
.github/workflows/mypy.yaml
View file @
67a7e5ef
...
...
@@ -32,4 +32,5 @@ jobs:
pip install types-setuptools
-
name
:
Mypy
run
:
|
tools/mypy.sh
echo "::add-matcher::.github/workflows/matchers/mypy.json"
tools/mypy.sh 1
tools/mypy.sh
View file @
67a7e5ef
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment