mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2024-12-29 09:21:19 +00:00
7f61575cba
The pylint configuration in .pylint was a modified version of the output of `pylint --generate-rcfile` from an unknown version of pylint. Replace it with a file that only contains settings that are modified from the default, with an explanation of why each setting is modified. The new .pylintrc was written from scratch, based on the output of pylint on the current version of the files and on a judgement of what to silence generically, what to silence on a case-by-case basis and what to fix.
19 lines
527 B
Bash
Executable File
19 lines
527 B
Bash
Executable File
#! /usr/bin/env sh
|
|
|
|
# This file is part of Mbed TLS (https://tls.mbed.org)
|
|
#
|
|
# Copyright (c) 2018, Arm Limited, All Rights Reserved
|
|
#
|
|
# Purpose:
|
|
#
|
|
# Run 'pylint' on Python files for programming errors and helps enforcing
|
|
# PEP8 coding standards.
|
|
|
|
if `hash pylint > /dev/null 2>&1`; then
|
|
pylint -j 2 tests/scripts/generate_test_code.py
|
|
pylint -j 2 tests/scripts/test_generate_test_code.py
|
|
pylint -j 2 tests/scripts/mbedtls_test.py
|
|
else
|
|
echo "$0: WARNING: 'pylint' not found! Skipping checks on Python files."
|
|
fi
|