Merge pull request #9227 from davidhorstmann-arm/check-framework-python-files

Extend python checks to framework scripts
This commit is contained in:
Bence Szépkúti 2024-06-10 11:33:27 +00:00 committed by GitHub
commit 2bceec830a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,14 +55,14 @@ elif [ "$1" = "--can-mypy" ]; then
fi
echo 'Running pylint ...'
$PYTHON -m pylint framework/scripts/mbedtls_framework/*.py scripts/*.py tests/scripts/*.py || {
$PYTHON -m pylint framework/scripts/*.py framework/scripts/mbedtls_framework/*.py scripts/*.py tests/scripts/*.py || {
echo >&2 "pylint reported errors"
ret=1
}
echo
echo 'Running mypy ...'
$PYTHON -m mypy framework/scripts/mbedtls_framework/*.py scripts/*.py tests/scripts/*.py ||
$PYTHON -m mypy framework/scripts/*.py framework/scripts/mbedtls_framework/*.py scripts/*.py tests/scripts/*.py ||
ret=1
exit $ret