1
0
mirror of https://github.com/ARMmbed/mbedtls.git synced 2025-05-10 08:59:05 +08:00
mbedtls/tests/scripts/check-python-files.sh
Gilles Peskine b2c269eeee Call pylint3, not pylint
We use Python 3, so call Pylint for Python 3, not for Python 2.
2019-02-27 11:03:24 +01:00

19 lines
532 B
Bash
Executable File

#! /usr/bin/env sh
# This file is part of Mbed TLS (https://tls.mbed.org)
#
# Copyright (c) 2018, Arm Limited, All Rights Reserved
#
# Purpose:
#
# Run 'pylint' on Python files for programming errors and helps enforcing
# PEP8 coding standards.
if `hash pylint3 > /dev/null 2>&1`; then
pylint3 -j 2 tests/scripts/generate_test_code.py
pylint3 -j 2 tests/scripts/test_generate_test_code.py
pylint3 -j 2 tests/scripts/mbedtls_test.py
else
echo "$0: WARNING: 'pylint3' not found! Skipping checks on Python files."
fi