Skip to content

Commit

Permalink
ci: add a pylint badge
Browse files Browse the repository at this point in the history
Signed-off-by: Davide Madrisan <[email protected]>
  • Loading branch information
madrisan committed Dec 22, 2024
1 parent d89a81d commit 7565a8b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
version: "latest"

- name: Install Python dependencies
run: pip install black flake8 pylint
run: pip install anybadge black flake8 pylint

- name: Run linters
uses: wearerequired/lint-action@v2
Expand All @@ -31,4 +31,7 @@ jobs:

- name: Analysing the code with pylint
run: |
uv run pylint $(git ls-files '*.py')
uv run pylint --output-format=text ./**/*.py | tee pylint.txt
score="$(sed -n "/^Your code has been rated at/{s,.* at \([0-9\.]*\)\/.*,\1,p}" pylint.txt)"
uv run anybadge --label pylint --value "$score" --file="pylint.svg" --overwrite

0 comments on commit 7565a8b

Please sign in to comment.