Skip to content

Commit 51e87f8

Browse files
committed
Work around code duplication warning in pylint
Signed-off-by: Bence Szépkúti <bence.szepkuti@arm.com>
1 parent 86545b4 commit 51e87f8

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

scripts/check-python-files.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,15 @@ 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+
$PYTHON -m pylint framework/scripts/*.py framework/scripts/mbedtls_framework/*.py scripts/[!a]*.py tests/scripts/*.py || {
59+
echo >&2 "pylint reported errors"
60+
ret=1
61+
}
62+
63+
# Temporary workaround while moving the bulk of abi_check.py to the framework
64+
# Check abi_check.py separately from the rest of the files, so it's not flagged
65+
# for code duplication.
66+
$PYTHON -m pylint scripts/a*.py || {
5967
echo >&2 "pylint reported errors"
6068
ret=1
6169
}

0 commit comments

Comments
 (0)