Skip to content

Commit 7e8ddd4

Browse files
authored
Merge pull request #229 from bensze01/abicheck-port
Update abi_check.py to support standalone tf-psa-crypto
2 parents f4dbe69 + 12fe6e3 commit 7e8ddd4

File tree

2 files changed

+687
-2
lines changed

2 files changed

+687
-2
lines changed

scripts/check-python-files.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,13 @@ elif [ "$1" = "--can-mypy" ]; then
5555
fi
5656

5757
echo 'Running pylint ...'
58-
$PYTHON -m pylint framework/scripts/*.py framework/scripts/mbedtls_framework/*.py scripts/*.py tests/scripts/*.py || {
58+
# Temporary workaround while moving the bulk of abi_check.py to the framework
59+
# Check abi_check.py separately from the rest of the files, so it's not flagged
60+
# for code duplication.
61+
find framework/scripts/*.py framework/scripts/mbedtls_framework/*.py scripts/*.py tests/scripts/*.py \
62+
-path scripts/abi_check.py \
63+
-exec $PYTHON -m pylint {} + \
64+
-o -exec $PYTHON -m pylint {} + || {
5965
echo >&2 "pylint reported errors"
6066
ret=1
6167
}
@@ -68,7 +74,7 @@ $PYTHON -m mypy framework/scripts/*.py framework/scripts/mbedtls_framework/*.py
6874
}
6975

7076
$PYTHON -m mypy scripts/*.py tests/scripts/*.py || {
71-
echo >&2 "pylint reported errors in the parent repository"
77+
echo >&2 "mypy reported errors in the parent repository"
7278
ret=1
7379
}
7480

0 commit comments

Comments
 (0)