forked from CHERIoT-Platform/sail-riscv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
23 lines (23 loc) · 1009 Bytes
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
exclude: '^(prover_snapshots)|(generated_definitions)|(c_emulator/SoftFloat-3e)'
minimum_pre_commit_version: 2.10.0
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
# Do not strip trailing whitespace from patches or SVG images.
# TODO: the objdump outputs should probably not be part of the repo.
exclude: '.*\.(diff|dump|patch|svg)'
- id: end-of-file-fixer
# Do not strip trailing newlines from patches or SVG images.
# TODO: the objdump outputs should probably not be part of the repo.
exclude: '.*\.(diff|dump|patch|svg)'
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v15.0.7'
hooks:
- id: clang-format
types_or: [c, c++] # Don't try running clang-format on .json files