Skip to content

chore(deps): update pre-commit hook python-jsonschema/check-jsonschem… #234

chore(deps): update pre-commit hook python-jsonschema/check-jsonschem…

chore(deps): update pre-commit hook python-jsonschema/check-jsonschem… #234

Workflow file for this run

name: prek
on:
push:
branches: [main]
pull_request:
jobs:
prek:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
# Cache prek's hook envs (cloned hook repos + their installed tools —
# ruff, prettier's node_modules, actionlint binary, codespell, etc.).
# Keyed on .pre-commit-config.yaml so a hook bump cleanly invalidates;
# restore-keys lets us reuse on partial hook changes for a warm-ish run.
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
with:
path: ~/.cache/prek
key: prek-${{ runner.os }}-${{ hashFiles('.pre-commit-config.yaml') }}
restore-keys: |
prek-${{ runner.os }}-
# mypy is skipped here (the dedicated mypy.yaml workflow runs it with a
# full HA dependency env).
- uses: j178/prek-action@4e14d07f9231acabce116ccfca13b13dd9755ece # v3.0.0
env:
SKIP: no-commit-to-branch,mypy
with:
extra-args: --all-files