mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2026-09-07 02:39:57 +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 <[email protected]>
This commit is contained in:
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user