mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-02-05 18:40:01 +00:00
Use can_mypy rather than just checking for mypy
As indicated in the comments in the can_mypy function, we don't just need a mypy executable to be present, we need it to work. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
bdde5d002c
commit
c3b178768f
@ -74,7 +74,7 @@ $PYTHON -m pylint -j 2 scripts/mbedtls_dev/*.py scripts/*.py tests/scripts/*.py
|
||||
}
|
||||
|
||||
# Check types if mypy is available
|
||||
if type mypy >/dev/null 2>/dev/null; then
|
||||
if can_mypy; then
|
||||
echo
|
||||
echo 'Running mypy ...'
|
||||
mypy scripts/*.py tests/scripts/*.py ||
|
||||
|
Loading…
x
Reference in New Issue
Block a user