mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-08-06 11:17:47 +00:00
Allow framework and consuming branch to have Python scripts with the same name
mypy can't deal with two modules with the same basename on its command line. We don't normally want modules with the same name in different directories, to avoid confusion, but it can happen occasionally while moving files across repositories. Signed-off-by: Gilles Peskine <[email protected]>
This commit is contained in:
@@ -62,7 +62,14 @@ $PYTHON -m pylint framework/scripts/*.py framework/scripts/mbedtls_framework/*.p
|
||||
|
||||
echo
|
||||
echo 'Running mypy ...'
|
||||
$PYTHON -m mypy framework/scripts/*.py framework/scripts/mbedtls_framework/*.py scripts/*.py tests/scripts/*.py ||
|
||||
ret=1
|
||||
$PYTHON -m mypy framework/scripts/*.py framework/scripts/mbedtls_framework/*.py || {
|
||||
echo >&2 "mypy reported errors in the framework"
|
||||
ret=1
|
||||
}
|
||||
|
||||
$PYTHON -m mypy scripts/*.py tests/scripts/*.py || {
|
||||
echo >&2 "pylint reported errors in the parent repository"
|
||||
ret=1
|
||||
}
|
||||
|
||||
exit $ret
|
||||
|
||||
Reference in New Issue
Block a user