mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-08-27 14:17:10 -04:00
50 lines
1.7 KiB
YAML
50 lines
1.7 KiB
YAML
repos:
|
|
- repo: local
|
|
hooks:
|
|
- id: sync-plugin-versions
|
|
name: Sync plugin versions
|
|
entry: python3 scripts/sync-plugin-versions.py
|
|
language: system
|
|
pass_filenames: false
|
|
always_run: true
|
|
- id: headroom-guardrails
|
|
name: Headroom architectural guardrails
|
|
entry: python3 scripts/headroom_guardrails.py
|
|
language: system
|
|
pass_filenames: false
|
|
always_run: true
|
|
- id: verify-ruff-version
|
|
name: Verify Ruff version alignment
|
|
entry: python3 scripts/verify-ruff-version.py
|
|
language: system
|
|
pass_filenames: false
|
|
always_run: true
|
|
- id: commitlint
|
|
name: Commitlint
|
|
entry: bash -lc 'npx --yes --package=@commitlint/cli --package=@commitlint/config-conventional -- commitlint --edit "$1" --config .commitlintrc.json' --
|
|
language: system
|
|
stages: [commit-msg]
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: check-merge-conflict
|
|
# Catch markers even outside an in-progress merge (e.g. committing a
|
|
# botched conflict resolution from a rebase). CI re-checks this
|
|
# unconditionally, so installing hooks is not required for enforcement.
|
|
args: [--assume-in-merge]
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.16.3
|
|
hooks:
|
|
- id: ruff
|
|
args: [--fix]
|
|
exclude: ^experiments/
|
|
- id: ruff-format
|
|
exclude: ^experiments/
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v1.14.1
|
|
hooks:
|
|
- id: mypy
|
|
args: [--ignore-missing-imports]
|
|
exclude: ^experiments/
|
|
pass_filenames: false
|
|
entry: mypy headroom
|