Skip to content

Commit 398f0dc

Browse files
committed
ci: update provenance workflow & fix pre-commit checks for pylint
1 parent 2fc63bf commit 398f0dc

4 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ jobs:
4343

4444
- name: Run pre-commit
4545
run: |
46-
pip install pre-commit
47-
pre-commit run --all-files --show-diff-on-failure
46+
pip install pre-commit==4.3.0
47+
pre-commit run --all-files
4848
4949
code-coverage:
5050
name: Codecov

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ jobs:
220220
packages: write
221221
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@v2.1.0
222222
with:
223-
image: ghcr.io/${{ github.repository_owner }}/${{ github.event.repository.name }}
223+
image: ghcr.io/${{ github.repository }}
224224
digest: ${{ needs.docker.outputs.digest }}
225225
registry-username: ${{ github.actor }}
226226
secrets:

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@ repos:
2020
hooks:
2121
- id: pylint
2222
files: \.py$
23+
additional_dependencies:
24+
- requests
25+
- PyGithub
26+
- pytest
27+
args:
28+
- "--max-args=7"
29+
- "--disable=too-many-positional-arguments"
2330
- repo: https://github.com/python-jsonschema/check-jsonschema
2431
rev: 0.34.0
2532
hooks:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
#### Code Quality & Coverage
1717
![Pylint](https://img.shields.io/badge/Pylint-9.97-greenyellow?logo=python)
18+
[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/Nicconike/Wakatime-Leaderboards/master.svg)](https://results.pre-commit.ci/latest/github/Nicconike/Wakatime-Leaderboards/master)
1819
[![codecov](https://codecov.io/gh/Nicconike/Wakatime-Leaderboards/graph/badge.svg?token=CX701AOW5Y)](https://codecov.io/gh/Nicconike/Wakatime-Leaderboards)
1920
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=Wakatime-Leaderboards&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=Wakatime-Leaderboards)
2021
[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=Wakatime-Leaderboards&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=Wakatime-Leaderboards)

0 commit comments

Comments
 (0)