Skip to content

Commit 966f6f3

Browse files
committed
mypy doesn't understand about _deprecated_parameter_class.
1 parent 88dd955 commit 966f6f3

File tree

1 file changed

+18
-15
lines changed

1 file changed

+18
-15
lines changed

.github/workflows/mypy-stubtest.yml

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,21 @@ jobs:
3737
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3838
run: |
3939
set -o pipefail
40-
MPLBACKEND=agg python -m mypy.stubtest \
41-
--mypy-config-file pyproject.toml \
42-
--allowlist ci/mypy-stubtest-allowlist.txt \
43-
matplotlib | \
44-
reviewdog \
45-
-efm '%Eerror: %m' \
46-
-efm '%CStub: in file %f:%l' \
47-
-efm '%CStub: in file %f' \
48-
-efm '%+CRuntime:%.%#' \
49-
-efm '%+CMISSING' \
50-
-efm '%+Cdef %.%#' \
51-
-efm '%+C<%.%#>' \
52-
-efm '%Z' \
53-
-reporter=github-check -tee -name=mypy-stubtest \
54-
-filter-mode=nofilter
40+
(MPLBACKEND=agg python -m mypy.stubtest
41+
--mypy-config-file pyproject.toml
42+
--allowlist ci/mypy-stubtest-allowlist.txt
43+
matplotlib || true) |
44+
sed '/_deprecated_parameter_class/,+5d' |
45+
reviewdog \
46+
-efm '%Eerror: %m' \
47+
-efm '%CStub: in file %f:%l' \
48+
-efm '%CStub: in file %f' \
49+
-efm '%+CRuntime:%.%#' \
50+
-efm '%+CMISSING' \
51+
-efm '%+Cdef %.%#' \
52+
-efm '%+C<%.%#>' \
53+
-efm '%Z' \
54+
-reporter=github-check -tee -name=mypy-stubtest \
55+
-filter-mode=nofilter |
56+
tee /dev/fd/1 |
57+
{ ! grep -q '^error:'; }

0 commit comments

Comments
 (0)