blob: a37d1d570f84669278c3c2aa0b544a08ceab8827 [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
Gilles Peskine7f615752019-02-25 20:17:33 +010013 pylint -j 2 tests/scripts/generate_test_code.py
14 pylint -j 2 tests/scripts/test_generate_test_code.py
15 pylint -j 2 tests/scripts/mbedtls_test.py
Mohammad Azim Khan21798102018-07-06 00:41:08 +010016else
17 echo "$0: WARNING: 'pylint' not found! Skipping checks on Python files."
18fi