Skip to content

Commit d6ef354

Browse files
dongcarlfanquake
authored andcommitted
lint: Run mypy with --show-error-codes
When using mypy ignore directives, the error code needs to be specified. Somehow mypy doesn't print it by default...
1 parent 137f3b9 commit d6ef354

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lint/lint-python.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ if ! PYTHONWARNINGS="ignore" flake8 --ignore=B,C,E,F,I,N,W --select=$(IFS=","; e
102102
EXIT_CODE=1
103103
fi
104104

105-
if ! mypy --ignore-missing-imports $(git ls-files "test/functional/*.py" "contrib/devtools/*.py"); then
105+
if ! mypy --ignore-missing-imports --show-error-codes $(git ls-files "test/functional/*.py" "contrib/devtools/*.py"); then
106106
EXIT_CODE=1
107107
fi
108108

0 commit comments

Comments
 (0)