Skip to content

Commit

Permalink
fix: pylint score (#22)
Browse files Browse the repository at this point in the history
* fix: pylint score

* 🚿
  • Loading branch information
siriscmv authored Nov 1, 2024
1 parent 9be8755 commit 8494398
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ jobs:
- name: Analyzing the code with pylint
run: |
pylint $(git ls-files '*.py') > pylint_output.txt || true
score=$(tail -n 1 pylint_output.txt | awk '{print $2}') # Get the Pylint score
echo "::set-output name=score::$score" # Set the score as output
score=$(grep "Your code has been rated at" pylint_output.txt | sed -E 's/^.*rated at ([0-9.]+).*$/\1/')
echo "score=$score" >> $GITHUB_OUTPUT
echo "::notice::Pylint score: $score/10"
- name: Save Pylint score to file
run: |
Expand Down

0 comments on commit 8494398

Please sign in to comment.