Skip to main content

Prek Setup

This repository uses prek (a fast, drop-in replacement for pre-commit) to run hooks defined in .pre-commit-config.yaml.

Playwright hooks are enabled for customer/support website changes and require the local dev stack to be running (for example, ./scripts/dev.sh). The hook auto-sets E2E_EMAIL/E2E_PASSWORD to the local dev defaults if they are unset; exported env vars still take precedence.

Install

# Recommended (uv)
uv tool install prek

# Alternative (Homebrew)
brew install prek

For other install methods, see https://prek.j178.dev/installation/.

Install Git Hooks

prek install -f

Run Manually

# Run on changed files (default behavior)
prek run

# Run on the full repository
prek run --all-files

Update Hook Versions

prek auto-update

Temporarily Bypass (Emergency Only)

git commit --no-verify

If you bypass hooks, run pre-commit run --all-files and fix issues before opening a PR.