blob: e64d6b33108e79abc0ecb4c9766fb7d9b5167a0b [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
Gilles Peskineb2c269e2019-02-25 20:25:02 +010012if `hash pylint3 > /dev/null 2>&1`; then
13 pylint3 -j 2 tests/scripts/generate_test_code.py
14 pylint3 -j 2 tests/scripts/test_generate_test_code.py
15 pylint3 -j 2 tests/scripts/mbedtls_test.py
Mohammad Azim Khan21798102018-07-06 00:41:08 +010016else
Gilles Peskineb2c269e2019-02-25 20:25:02 +010017 echo "$0: WARNING: 'pylint3' not found! Skipping checks on Python files."
Mohammad Azim Khan21798102018-07-06 00:41:08 +010018fi