Skip to content

Commit

Permalink
update check_pylint_diff.sh to orange3 version
Browse files Browse the repository at this point in the history
  • Loading branch information
markotoplak committed Jan 10, 2024
1 parent 4223f04 commit 9987d33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check_pylint_diff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 9987d33

Please sign in to comment.