From 81f7f6c7a16bc5e63228996cedf8ac83f45f3717 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Mon, 15 Apr 2019 10:09:51 +0200 Subject: [PATCH] Remove outdated check script. Will bring back as adapted copy from QA code --- check.sh | 69 -------------------------------------------------------------- 1 files changed, 0 insertions(+), 69 deletions(-) delete mode 100755 check.sh diff --git a/check.sh b/check.sh deleted file mode 100755 index 59f672e..0000000 --- a/check.sh +++ /dev/null @@ -1,69 +0,0 @@ -#!/bin/bash - -# The software in this package is distributed under the GNU General -# Public License version 2 (with a special exception described below). -# -# A copy of GNU General Public License (GPL) is included in this distribution, -# in the file COPYING.GPL. -# -# As a special exception, if other files instantiate templates or use macros -# or inline functions from this file, or you compile this file and link it -# with other works to produce a work based on this file, this file -# does not by itself cause the resulting work to be covered -# by the GNU General Public License. -# -# However the source code for this file must still be made available -# in accordance with section (3) of the GNU General Public License. -# -# This exception does not invalidate any other reasons why a work based -# on this file might be covered by the GNU General Public License. -# -# Copyright (c) 2016-2018 Intra2net AG - -# check.sh -# check a python file using pylint and pep8 - -# debug mode: -#set -x - -if [ $# != 1 ]; then - echo "Unexpected number of args, just want a single python file" - exit 1 -fi - -# look for file as-is -test_file= -if [ -f "$1" ]; then - test_file="$1" -fi - -# look for file with .py suffix -if [ -f "$1.py" ]; then - test_file="$1.py" -fi - -# error if not found yet -if [ "$test_file" = "" ]; then - echo "Could not find $1!" - exit 2 -fi - -# run pylint -echo "pylint:" -pylint --reports=no $test_file -pylint_return=$? -echo - -# run pep8 -echo "pep8:" -pep8 "$test_file" -pep8_return=$? -echo - -# done -echo Done checking -if [[ $pylint_return == 0 && $pep8_return == 0 ]]; then - echo "Everything seems to be fine" -else - echo "Please correct" -fi -- 1.7.1