aboutsummaryrefslogtreecommitdiff
path: root/test/lint/lint-python.sh
diff options
context:
space:
mode:
authorHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-11-07 14:37:56 +0200
committerHennadii Stepanov <32963518+hebasto@users.noreply.github.com>2021-11-13 18:05:26 +0200
commitfe0ff569ea6c353f88609c0f5f9b6fa80ff74f15 (patch)
tree53ed10068a39ef9a8423811ea75bdb8d4de3d0b3 /test/lint/lint-python.sh
parent9a1ad7bc0dd8a0769738ca4dffbeb8d55438b0dc (diff)
downloadbitcoin-fe0ff569ea6c353f88609c0f5f9b6fa80ff74f15.tar.xz
test: Enable SC2046 shellcheck rule
Diffstat (limited to 'test/lint/lint-python.sh')
-rwxr-xr-xtest/lint/lint-python.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lint/lint-python.sh b/test/lint/lint-python.sh
index 3d22407fd1..96b34d715e 100755
--- a/test/lint/lint-python.sh
+++ b/test/lint/lint-python.sh
@@ -92,6 +92,7 @@ fi
EXIT_CODE=0
+# shellcheck disable=SC2046
if ! PYTHONWARNINGS="ignore" flake8 --ignore=B,C,E,F,I,N,W --select=$(IFS=","; echo "${enabled[*]}") $(
if [[ $# == 0 ]]; then
git ls-files "*.py"
@@ -102,7 +103,8 @@ if ! PYTHONWARNINGS="ignore" flake8 --ignore=B,C,E,F,I,N,W --select=$(IFS=","; e
EXIT_CODE=1
fi
-if ! mypy --show-error-codes $(git ls-files "test/functional/*.py" "contrib/devtools/*.py"); then
+mapfile -t FILES < <(git ls-files "test/functional/*.py" "contrib/devtools/*.py")
+if ! mypy --show-error-codes "${FILES[@]}"; then
EXIT_CODE=1
fi