From 9987d334ce0c26fdf56ca0bf499eb67eed66e889 Mon Sep 17 00:00:00 2001 From: Marko Toplak Date: Wed, 10 Jan 2024 13:19:41 +0100 Subject: [PATCH] update check_pylint_diff.sh to orange3 version --- .github/workflows/check_pylint_diff.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check_pylint_diff.sh b/.github/workflows/check_pylint_diff.sh index 0306be4e8..b53aae6eb 100755 --- a/.github/workflows/check_pylint_diff.sh +++ b/.github/workflows/check_pylint_diff.sh @@ -15,7 +15,7 @@ UNCOMMITED_PATCH="$TMP_REPO/uncommited.patch" SCRIPT=$(basename "$0") PYLINT="$(command -v pylint 2>/dev/null || true)" RADON="$(command -v radon 2>/dev/null || true)" -PYLINT_ARGS="--output-format=parseable" +PYLINT_ARGS="--msg-template='{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}'" RADON_ARGS='cc --min C --no-assert --show-closures --show-complexity --average' trap "status=\$?; cd '$GIT_REPO'; rm -rf '$TMP_REPO'; exit \$status" EXIT @@ -127,7 +127,7 @@ Number_of_issues () cached="$1" { cat "$cached" 2>/dev/null || echo "$CHANGED_FILES" | - xargs "$PYLINT" $PYLINT_ARGS | + xargs "$PYLINT" "$PYLINT_ARGS" | tee "$cached" } | awk -F'[\\. ]' '/^Your code has been rated at /{ print $7 }' || true }