Lines Matching +full:pylint +full:- +full:exit
4 # SPDX-License-Identifier: Apache-2.0
10 # http://www.apache.org/licenses/LICENSE-2.0
19 # hurdles. Run pylint to detect some potential mistakes and enforce PEP8
32 $PYTHON - "$2" <<EOF
40 exit(1)
45 # Pylint 1.5.2 from Ubuntu 16.04 is too old:
46 # E: 34, 0: Unable to import 'mbedtls_dev' (import-error)
47 # Pylint 1.8.3 from Ubuntu 18.04 passed on the first commit containing this line.
48 check_version pylint 1.8.3
58 # With just a --can-xxx option, check whether the tool for xxx is available
59 # with an acceptable version, and exit without running any checks. The exit
61 if [ "$1" = "--can-pylint" ]; then
63 exit
64 elif [ "$1" = "--can-mypy" ]; then
66 exit
69 echo 'Running pylint ...'
70 $PYTHON -m pylint -j 2 scripts/mbedtls_dev/*.py scripts/*.py tests/scripts/*.py || {
71 echo >&2 "pylint reported errors"
79 $PYTHON -m mypy scripts/*.py tests/scripts/*.py ||
83 exit $ret