Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# Pre-commit hooks — embodies the CI/Hook Parity Principle for this repo.
#
# Every hook below ALSO runs in CI (via the reusable validate.yml workflow
# from netresearch/skill-repo-skill). CI is the authoritative backstop;
# local hooks are pinned by `rev:` and Renovate bumps them automatically.
#
# See netresearch/agent-harness-skill references/enforcement-mechanisms.md
# for the CI/Hook Parity Principle in full.
#
# Install once after clone: `pre-commit install --install-hooks`.
# Bypass (use sparingly): `git commit --no-verify`. If you need this often,
# the hook is wrong — fix it; don't tolerate the bypass.

default_install_hook_types: [pre-commit]
default_stages: [pre-commit]

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
Comment thread
CybotTM marked this conversation as resolved.
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: check-added-large-files
- id: check-json
- id: check-yaml
args: [--allow-multiple-documents]

- repo: https://github.com/netresearch/skill-repo-skill
rev: v1.22.0
hooks:
- id: validate-skill
- id: check-version-parity

- repo: https://github.com/DavidAnson/markdownlint-cli2
rev: v0.22.1
Comment thread
CybotTM marked this conversation as resolved.
hooks:
- id: markdownlint-cli2
files: '\.md$'

- repo: https://github.com/adrienverge/yamllint
rev: v1.38.0
hooks:
- id: yamllint
args: [-c, .yamllint.yml]
Comment thread
CybotTM marked this conversation as resolved.

- repo: https://github.com/rhysd/actionlint
rev: v1.7.12
Comment thread
CybotTM marked this conversation as resolved.
hooks:
- id: actionlint

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.14
Comment thread
CybotTM marked this conversation as resolved.
hooks:
- id: ruff
- id: ruff-format

- repo: https://github.com/shellcheck-py/shellcheck-py
rev: v0.11.0.1
Comment thread
CybotTM marked this conversation as resolved.
hooks:
- id: shellcheck
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,8 @@
],
"peerDependencies": {
"@netresearch/agent-skill-coordinator": "^0.1"
},
"scripts": {
"prepare": "command -v pre-commit >/dev/null && pre-commit install --install-hooks 2>/dev/null || true"
Comment thread
CybotTM marked this conversation as resolved.
Comment thread
CybotTM marked this conversation as resolved.
}
}
Loading