summaryrefslogtreecommitdiff
path: root/.pre-commit-config.yaml
blob: 634ba48ec9a7f1fffae2131b308c04601e06f191 (plain)
1
2
3
4
5
6
7
8
9
10
# Local clang-format hook: formats staged C/C++ in soh/ on commit, using a
# pinned 14.x downloaded by pre-commit. Scope matches run-clang-format.sh / CI.
#   pre-commit install --install-hooks   # enable (downloads clang-format up front)
repos:
  - repo: https://github.com/pre-commit/mirrors-clang-format
    rev: v14.0.6
    hooks:
      - id: clang-format
        files: '^soh/.*\.(c|cpp|h|hpp)$'
        exclude: '^soh/assets/|^soh/(src|include)/.*\.(h|hpp)$'