mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-25 14:55:37 +00:00
Merge pull request #5589 from gilles-peskine-arm/mypy-on-jenkins-2.28
Backport 2.28: Make mypy unconditional
This commit is contained in:
commit
9a0b482e98
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
# Purpose: check Python files for potential programming errors or maintenance
|
# Purpose: check Python files for potential programming errors or maintenance
|
||||||
# hurdles. Run pylint to detect some potential mistakes and enforce PEP8
|
# hurdles. Run pylint to detect some potential mistakes and enforce PEP8
|
||||||
# coding standards. If available, run mypy to perform static type checking.
|
# coding standards. Run mypy to perform static type checking.
|
||||||
|
|
||||||
# We'll keep going on errors and report the status at the end.
|
# We'll keep going on errors and report the status at the end.
|
||||||
ret=0
|
ret=0
|
||||||
|
@ -72,12 +72,9 @@ $PYTHON -m pylint -j 2 scripts/mbedtls_dev/*.py scripts/*.py tests/scripts/*.py
|
||||||
ret=1
|
ret=1
|
||||||
}
|
}
|
||||||
|
|
||||||
# Check types if mypy is available
|
echo
|
||||||
if can_mypy; then
|
echo 'Running mypy ...'
|
||||||
echo
|
$PYTHON -m mypy scripts/*.py tests/scripts/*.py ||
|
||||||
echo 'Running mypy ...'
|
ret=1
|
||||||
$PYTHON -m mypy scripts/*.py tests/scripts/*.py ||
|
|
||||||
ret=1
|
|
||||||
fi
|
|
||||||
|
|
||||||
exit $ret
|
exit $ret
|
||||||
|
|
Loading…
Reference in a new issue