mirror of
https://github.com/deepseek-ai/deepseek-harness
synced 2026-08-15 21:04:50 +00:00
31 lines
934 B
YAML
31 lines
934 B
YAML
# Git hooks (lefthook). Keep these local checkpoints fast; CI owns the full
|
|
# repository-wide gate matrix.
|
|
# Install: `node scripts/install-lefthook.mjs` (runs automatically via postinstall).
|
|
|
|
pre-commit:
|
|
jobs:
|
|
- name: format (staged)
|
|
glob: '*.{ts,tsx,mts,cts,mjs}'
|
|
exclude:
|
|
- 'vendor/*/src/**'
|
|
run: node_modules/.bin/eslint --config eslint.format.config.mjs --fix --no-warn-ignored {staged_files}
|
|
stage_fixed: true
|
|
|
|
- name: lint (staged)
|
|
glob: '*.{ts,tsx,mts,cts,mjs}'
|
|
exclude:
|
|
- 'vendor/*/src/**'
|
|
run: node_modules/.bin/tsx scripts/run-oxlint.ts --fix --no-error-on-unmatched-pattern {staged_files}
|
|
stage_fixed: true
|
|
|
|
- name: whitespace (staged)
|
|
run: git diff --cached --check
|
|
|
|
- name: vendor manifest guard
|
|
run: scripts/check-vendor-manifest.sh
|
|
|
|
pre-push:
|
|
jobs:
|
|
- name: typecheck
|
|
run: node_modules/.bin/tsc -b --pretty false
|