forked from zeek/spicy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
71 lines (61 loc) · 1.68 KB
/
.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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: local
hooks:
- id: checkbashisms
name: Check for bashisms in /bin/sh scripts
entry: ./tests/Scripts/3rdparty/checkbashisms.pl
language: script
types: ["sh"]
- id: autogen-docs
name: Check that generated documentation is up-to-date
entry: ./doc/scripts/autogen-docs
language: script
pass_filenames: false
- id: stray_baselines
name: Check for stray BTest baselines
entry: ./tests/Scripts/stray_baselines.py
language: python
pass_filenames: false
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v15.0.4'
hooks:
- id: clang-format
types: ["c", "c++"]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
exclude: '^tests/Baseline'
- id: end-of-file-fixer
exclude: '^tests/Baseline|^doc/autogen|^doc/_static'
- id: check-yaml
- id: check-added-large-files
- repo: https://gitlab.com/daverona/pre-commit/cpp
rev: 0.8.0
hooks:
- id: cpplint
exclude: '3rdparty/'
args: ["--quiet"]
- repo: https://github.com/jorisroovers/gitlint
rev: v0.18.0
hooks:
- id: gitlint
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal
- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.13
hooks:
- id: cmake-format
- id: cmake-lint
- repo: https://github.com/crate-ci/typos
rev: v1.13.3
hooks:
- id: typos
exclude: 'tests/.*/regexp/.*'
exclude: 3rdparty/|doc/.*examples/|/Baseline/|(\.svg$)|(\.dat$)