Skip to content

Commit

Permalink
lint: Run mypy with --show-error-codes
Browse files Browse the repository at this point in the history
When using mypy ignore directives, the error code needs to be specified.
Somehow mypy doesn't print it by default...
  • Loading branch information
dongcarl authored and fanquake committed Jul 7, 2021
1 parent 137f3b9 commit d6ef354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/lint/lint-python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ if ! PYTHONWARNINGS="ignore" flake8 --ignore=B,C,E,F,I,N,W --select=$(IFS=","; e
EXIT_CODE=1
fi

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

Expand Down

0 comments on commit d6ef354

Please sign in to comment.