File tree Expand file tree Collapse file tree 2 files changed +687
-2
lines changed
Expand file tree Collapse file tree 2 files changed +687
-2
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,13 @@ elif [ "$1" = "--can-mypy" ]; then
5555fi
5656
5757echo ' 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
You can’t perform that action at this time.
0 commit comments