mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-01 09:10:03 +00:00
mypy: require at least version 0.780
0.780 works. The previous release, 0.770, does not. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
4738b96d75
commit
0370c17105
@ -49,11 +49,10 @@ can_pylint () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
can_mypy () {
|
can_mypy () {
|
||||||
# Just check that mypy is present and looks sane. I don't know what
|
# mypy 0.770 is too old:
|
||||||
# minimum version is required. The check is not just "type mypy"
|
# tests/scripts/test_psa_constant_names.py:34: error: Cannot find implementation or library stub for module named 'mbedtls_dev'
|
||||||
# because that passes if a mypy exists but is not installed for the current
|
# mypy 0.780 from pip passed on the first commit containing this line.
|
||||||
# python version.
|
check_version mypy.version 0.780
|
||||||
$PYTHON -m mypy --version 2>/dev/null >/dev/null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# With just a --can-xxx option, check whether the tool for xxx is available
|
# With just a --can-xxx option, check whether the tool for xxx is available
|
||||||
|
Loading…
Reference in New Issue
Block a user