blob: 009ba4cb0135b672a4200965e286db6984ce4c23 [file] [log] [blame]
Mohammad Azim Khan21798102018-07-06 00:41:08 +01001#! /usr/bin/env sh
2
Mohammad Azim Khand2d01122018-07-18 17:48:37 +01003# This file is part of Mbed TLS (https://tls.mbed.org)
Mohammad Azim Khan21798102018-07-06 00:41:08 +01004#
Mohammad Azim Khand2d01122018-07-18 17:48:37 +01005# Copyright (c) 2018, Arm Limited, All Rights Reserved
Mohammad Azim Khan21798102018-07-06 00:41:08 +01006#
Mohammad Azim Khand2d01122018-07-18 17:48:37 +01007# Purpose:
Mohammad Azim Khan21798102018-07-06 00:41:08 +01008#
9# Run 'pylint' on Python files for programming errors and helps enforcing
10# PEP8 coding standards.
11
12if `hash pylint > /dev/null 2>&1`; then
13 pylint -j 2 tests/scripts/generate_test_code.py --rcfile .pylint
14 pylint -j 2 tests/scripts/test_generate_test_code.py --rcfile .pylint
15 pylint -j 2 tests/scripts/mbedtls_test.py --rcfile .pylint
16else
17 echo "$0: WARNING: 'pylint' not found! Skipping checks on Python files."
18fi