summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
blob: b8a2d716bc73592354f41d4867991ce719a3f205 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
repos:
  - repo: local
    hooks:
      - id: meta-lint-ci
        name: Running Meta/lint-ci.sh to ensure changes will pass linting on CI
        entry: bash Meta/lint-ci.sh
        args: [ --no-ports ]
        stages: [ commit ]
        language: system

      - id: meta-lint-ports
        name: Running Meta/lint-ports.py to ensure changes will pass linting on CI
        entry: Meta/lint-ports.py
        pass_filenames: false
        files: ^Ports/
        stages: [ commit ]
        language: system

      - id: meta-lint-commit
        name: Lint commit message to ensure it will pass the commit linting on CI
        entry: Meta/lint-commit.sh
        stages: [ commit-msg ]
        language: system