From 407d7e2d5b12ec878ad06821ab846ac30ccc7047 Mon Sep 17 00:00:00 2001 From: Prince D Rusweka Rwabongoya Date: Sun, 27 Apr 2025 23:07:51 -0400 Subject: [PATCH] Update backend-ci.yml --- .github/workflows/backend-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/backend-ci.yml b/.github/workflows/backend-ci.yml index ec974e4..cd1a378 100644 --- a/.github/workflows/backend-ci.yml +++ b/.github/workflows/backend-ci.yml @@ -48,7 +48,7 @@ jobs: - name: Run pylint on backend run: | pylint --exit-zero --output-format=json $(git ls-files '*.py') > pylint_report.json - pylint_score=$(jq '[.[].score] | add / length' pylint_report.json) + pylint_score=$(jq '[.[] | select(.score != null) | .score] | add / length' pylint_report.json) echo "Pylint score: $pylint_score" if (( $(echo "$pylint_score < 8.0" | bc -l) )); then echo "Pylint score too low ($pylint_score)!" && exit 1