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