Skip to content

Commit e140723

Browse files
bakerkjclaude
andcommitted
chore: migrate prettier hook and add setup-uv cache-suffix
Two pre-commit/CI hygiene changes: - Migrate the prettier hook from pre-commit/mirrors-prettier@v4.0.0-alpha.8 (deprecated, archived, pinned to a years-old alpha) to rbubley/mirrors-prettier@v3.8.3, the maintained successor that tracks stable prettier 3.x. Renovate's pre-commit manager can now track updates again. No content changes: prettier 3.8.3 produces identical output to 4.0.0-alpha.8 for this repo's YAML/JSON/Markdown files. - Add distinct cache-suffix values to setup-uv in tests.yaml (tests) and pre-commit.yaml (pre-commit). Both jobs previously computed the same cache key on parallel runs, so one always lost the save race with "Failed to save: Unable to reserve cache with key" warnings. Distinct keys eliminate the warning at the cost of ~2x cache storage. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent c7fe07e commit e140723

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/pre-commit.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
with:
1515
python-version: "3.14"
1616
enable-cache: true
17+
cache-suffix: pre-commit
1718
- uses: actions/cache@v5.0.5
1819
with:
1920
path: ~/.cache/pre-commit

.github/workflows/tests.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ jobs:
1414
with:
1515
python-version: "3.14"
1616
enable-cache: true
17+
cache-suffix: tests
1718
- run: uv sync --group test
1819
- run: uv run python -m pytest tests/ -v

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ repos:
3636
- id: codespell
3737
args: ["--ignore-words-list", "hass,renderD,renderd"]
3838

39-
- repo: https://github.com/pre-commit/mirrors-prettier
40-
rev: v4.0.0-alpha.8
39+
- repo: https://github.com/rbubley/mirrors-prettier
40+
rev: v3.8.3
4141
hooks:
4242
- id: prettier
4343
types_or: [yaml, json, markdown]

0 commit comments

Comments
 (0)