Skip to content

Commit 3218bc4

Browse files
Merge pull request #2911 from VWS-Python/adamtheturtle/lint-matrix-hook-stage
Matrix lint workflow by hook stage
2 parents b738b8b + 205acc2 commit 3218bc4

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/lint.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
matrix:
2121
python-version: ['3.13']
2222
platform: [ubuntu-latest, windows-latest]
23+
hook-stage: [pre-commit, pre-push, manual]
2324

2425
runs-on: ${{ matrix.platform }}
2526

@@ -38,10 +39,8 @@ jobs:
3839
# Use bash to ensure the step fails if any command fails.
3940
# PowerShell does not fail on intermediate command failures by default.
4041
shell: bash
41-
run: |
42-
uv run --extra=dev prek run --all-files --hook-stage pre-commit --verbose
43-
uv run --extra=dev prek run --all-files --hook-stage pre-push --verbose
44-
uv run --extra=dev prek run --all-files --hook-stage manual --verbose
42+
run: uv run --extra=dev prek run --all-files --hook-stage ${{ matrix.hook-stage }}
43+
--verbose
4544
env:
4645
UV_PYTHON: ${{ matrix.python-version }}
4746

0 commit comments

Comments
 (0)