Skip to content

Commit

Permalink
Update Pylint badge in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Arturo Gonzalez committed Feb 4, 2024
1 parent 013de77 commit 1c135cf
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,4 @@ jobs:
run: find . -name '*.py' -print -exec pylint {} \;
- name: Analysing code with PyLint
run: |
# pylint $(find . -name '*.py') --fail-under=8.0
pylint_score=$(pylint $(find . -name '*.py') --fail-under=8.0 --exit-zero --output-format=text | tee /dev/tty | grep 'Your code has been rated at' | sed 's/.*rated at \([-0-9.]*\)\/.*/\1/')
echo "Pylint score: $pylint_score"
badge_url="https://img.shields.io/badge/Pylint-${pylint_score// /_}-blue"
echo "Badge URL: $badge_url"
echo "NEW_BADGE_URL=$badge_url" >> $GITHUB_ENV
- name: Update README with Pylint Badge
run: python update_readme.py README.md "${{ env.NEW_BADGE_URL }}"


pylint $(find . -name '*.py') --fail-under=8.0

0 comments on commit 1c135cf

Please sign in to comment.