File size: 1,101 Bytes
6a7089a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
repos:
  # General file checks
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v4.5.0
    hooks:
      - id: trailing-whitespace
      - id: end-of-file-fixer
      - id: check-yaml
      - id: check-json
        exclude: 'tsconfig\..+\.json$'
      - id: check-merge-conflict
      - id: check-added-large-files
        args: ['--maxkb=500']

  # Go formatting
  - repo: https://github.com/golangci/golangci-lint
    rev: v2.1.6
    hooks:
      - id: golangci-lint
        args: ['--timeout=5m']

  # Markdown linting (relaxed for docs)
  - repo: https://github.com/igorshubovych/markdownlint-cli
    rev: v0.37.0
    hooks:
      - id: markdownlint
        args: ['--config', '.markdownlint.json']
        # Exclude test files, auto-generated docs, repo root, and skill docs
        exclude: |
          (?x)^(
            tests/.*\.md|
            \.github/.*\.md|
            skill/.*\.md|
            docs/references/.*\.json|
            README\.md|
            CONTRIBUTING\.md|
            CODE_OF_CONDUCT\.md|
            SECURITY\.md|
            RELEASE\.md
          )$