Skip to content

Commit

Permalink
Update backend-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pdr21001 authored Apr 28, 2025
1 parent c765579 commit 407d7e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/backend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 407d7e2

Please sign in to comment.