Skip to content

Commit 3c6255b

Browse files
Update lint workflow to handle both push/PR events and include setup.py
Co-authored-by: SomethingGeneric <[email protected]>
1 parent 0920f0a commit 3c6255b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
2727
- name: Run Pylint
2828
run: |
29-
pylint miniupdate/ --fail-under=8.0
29+
pylint miniupdate/ setup.py --fail-under=8.0
3030
3131
black:
3232
name: Black Formatter
@@ -37,7 +37,7 @@ jobs:
3737
- uses: actions/checkout@v4
3838
with:
3939
token: ${{ secrets.GITHUB_TOKEN }}
40-
ref: ${{ github.head_ref }}
40+
ref: ${{ github.head_ref || github.ref }}
4141

4242
- name: Set up Python
4343
uses: actions/setup-python@v5
@@ -51,7 +51,7 @@ jobs:
5151
5252
- name: Run Black
5353
run: |
54-
black miniupdate/
54+
black miniupdate/ setup.py
5555
5656
- name: Check for changes
5757
id: verify_diff

0 commit comments

Comments
 (0)