blob: cd18518caef98d1f1169b11e9beabb0e2d8c37b6 [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 Peskinec3730002020-03-24 15:07:57 +010012if type python3 >/dev/null 2>/dev/null; then
13 PYTHON=python3
Simon Butcher47f72872020-03-16 11:30:46 +000014else
Gilles Peskinec3730002020-03-24 15:07:57 +010015 PYTHON=python
Simon Butcher47f72872020-03-16 11:30:46 +000016fi
17
Gilles Peskinec3730002020-03-24 15:07:57 +010018$PYTHON -m pylint -j 2 scripts/*.py tests/scripts/*.py