blob: e987945c6d394db02b5f83391579fa7a2a8158a4 [file] [log] [blame]
Mohammad Azim Khan21798102018-07-06 00:41:08 +01001#! /usr/bin/env sh
2
3# This file is part of mbed TLS (https://tls.mbed.org)
4#
5# Copyright (c) 2018, ARM Limited, All Rights Reserved
6#
7# Purpose
8#
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