Skip to content

Commit 07eca96

Browse files
committed
Use prek in gha workflow
1 parent 63d5008 commit 07eca96

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

template/{% if use_github %}.github{% endif %}/workflows/{% if use_github and python %}main.yml{% endif %}.jinja

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,18 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- name: Check out
15-
uses: actions/checkout@v4
16-
17-
- uses: actions/cache@v4
18-
with:
19-
path: ~/.cache/pre-commit
20-
key: pre-commit-${{'{{'}} hashFiles('.pre-commit-config.yaml') {{'}}'}}
15+
uses: actions/checkout@v5
2116

2217
- name: Set up the environment
2318
uses: ./.github/actions/setup-python-env
2419

20+
- name: Install prek for pre-commit hooks
21+
uses: j178/prek-action@v1
22+
2523
- name: Run checks
2624
run: |
2725
uv lock --locked
28-
uv run pre-commit run -a
26+
prek run -a
2927
uv run {% if type_checker == "mypy" %}mypy{% else %}ty check{% endif %}
3028
uv run deptry .
3129

0 commit comments

Comments
 (0)