Skip to content

Commit 6561105

Browse files
pre-commit workflow: Fix up caching and options
1 parent ed36bce commit 6561105

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/pre-commit.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,17 @@ jobs:
3232
path: |
3333
.venv
3434
key: ${{ runner.os }}-uv-${{ hashFiles('uv.lock') }}
35-
- uses: actions/cache@v4
35+
- name: Restore mypy cache
36+
uses: actions/cache@v4
3637
with:
3738
path: .mypy_cache
3839
key: mypy_cache|${{ hashFiles('pyproject.toml') }}
40+
- name: Restore pre-commit cache
41+
uses: actions/cache@v4
42+
with:
43+
path: ~/.cache/pre-commit
44+
key: pre-commit-4|${{ hashFiles('.pre-commit-config.yaml') }}
3945
- name: Synchronize project dependencies
4046
run: uv sync --group dev
4147
- name: Run pre-commit checks
42-
run: uv run pre-commit run --all-files --hook-stage manual
48+
run: uv run pre-commit run --show-diff-on-failure --all-files --hook-stage manual

0 commit comments

Comments
 (0)