summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
blob: 49f0ccd14beecf93358a1b887f69161b74226b8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks

minimum_pre_commit_version: 2.9.0

repos:
    - repo: https://github.com/pre-commit/mirrors-clang-format
      rev: v10.0.1
      hooks:
          - id: clang-format

    - repo: local
      hooks:
          - id: copyright-check
            name: copyright-check
            description: Checks for a valid copyright header
            entry: check_copyright.py
            language: script
            types_or: [c, c++]