From 7b4bdfab4cf0e6a7e133f8c5fa838983a29fad2e Mon Sep 17 00:00:00 2001 From: Paul Marillonnet Date: Wed, 23 Mar 2022 17:20:41 +0100 Subject: [PATCH] codestyle: add pylint.sh (#63120) --- pylint.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 pylint.sh diff --git a/pylint.sh b/pylint.sh new file mode 100755 index 0000000..241d24c --- /dev/null +++ b/pylint.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +set -e + +if [ -f /var/lib/jenkins/pylint.django.rc ]; then + PYLINT_RC=/var/lib/jenkins/pylint.django.rc +elif [ -f pylint.django.rc ]; then + PYLINT_RC=pylint.django.rc +else + echo No pylint RC found + exit 0 +fi +pylint -f parseable --rcfile ${PYLINT_RC} "$@" > pylint.out || /bin/true