Lines Matching +full:pylint +full:- +full:exit
4 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
7 # hurdles. Run pylint to detect some potential mistakes and enforce PEP8
20 $PYTHON - "$2" <<EOF
28 exit(1)
33 # Pylint 1.5.2 from Ubuntu 16.04 is too old:
34 # E: 34, 0: Unable to import 'mbedtls_dev' (import-error)
35 # Pylint 1.8.3 from Ubuntu 18.04 passed on the first commit containing this line.
36 check_version pylint 1.8.3
46 # With just a --can-xxx option, check whether the tool for xxx is available
47 # with an acceptable version, and exit without running any checks. The exit
49 if [ "$1" = "--can-pylint" ]; then
51 exit
52 elif [ "$1" = "--can-mypy" ]; then
54 exit
57 echo 'Running pylint ...'
58 $PYTHON -m pylint scripts/mbedtls_dev/*.py scripts/*.py tests/scripts/*.py || {
59 echo >&2 "pylint reported errors"
65 $PYTHON -m mypy scripts/*.py tests/scripts/*.py ||
68 exit $ret