mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-29 07:18:58 +01:00
test: Do not swallow flake8 exit code
This commit is contained in:
@@ -90,12 +90,20 @@ elif PYTHONWARNINGS="ignore" flake8 --version | grep -q "Python 2"; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PYTHONWARNINGS="ignore" flake8 --ignore=B,C,E,F,I,N,W --select=$(IFS=","; echo "${enabled[*]}") $(
|
EXIT_CODE=0
|
||||||
|
|
||||||
|
if ! PYTHONWARNINGS="ignore" flake8 --ignore=B,C,E,F,I,N,W --select=$(IFS=","; echo "${enabled[*]}") $(
|
||||||
if [[ $# == 0 ]]; then
|
if [[ $# == 0 ]]; then
|
||||||
git ls-files "*.py"
|
git ls-files "*.py"
|
||||||
else
|
else
|
||||||
echo "$@"
|
echo "$@"
|
||||||
fi
|
fi
|
||||||
)
|
); then
|
||||||
|
EXIT_CODE=1
|
||||||
|
fi
|
||||||
|
|
||||||
mypy --ignore-missing-imports $(git ls-files "test/functional/*.py")
|
if ! mypy --ignore-missing-imports $(git ls-files "test/functional/*.py"); then
|
||||||
|
EXIT_CODE=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit $EXIT_CODE
|
||||||
|
|||||||
Reference in New Issue
Block a user