-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
66 lines (65 loc) · 2.03 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
# SPDX-License-Identifier: MIT
# Copyright (c) 2023. University of Texas at Austin. All rights reserved.
fail_fast: true
exclude: ^pando-rt/|.gitmodules|.gitignore|.git/|^graphs/|^ok/|^sst-core-src/|^sst-elements-src/
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
hooks:
- id: forbid-tabs
exclude: scripts/|Makefile|.*\.mk$
- id: remove-tabs
exclude: scripts/|Makefile|.*\.mk$
args: [--whitespaces-count, '2']
- id: insert-license
files: concurrentqueue.hpp|.*\.sh$|.*\.yml$|.*\.yaml$|.*\.txt$|.*\.py|.*\.cmake|.*\.cfg$|Dockerfile.*|Makefile.*|.clang-format|.tool-versions
exclude: LICENSE.txt|^pando-drv/
args:
- --detect-license-in-X-top-lines=10
- id: insert-license
exclude: ^pando-drv/
files: .*\.c$|.*\.cc$|.*\.cpp$|.*\.hpp$|.*\.h$
args:
- --detect-license-in-X-top-lines=10
- --comment-style
- //
- id: insert-license
exclude: ^pando-drv/
files: .*\.md$
args:
- --detect-license-in-X-top-lines=10
- --comment-style
- <!--| ~| -->
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.31.1
hooks:
- id: markdownlint
exclude: ^pando-drv/
- id: markdownlint-fix
exclude: ^pando-drv/
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: shfmt
args: [-i 4]
- repo: https://github.com/codespell-project/codespell
rev: v2.2.6
hooks:
- id: codespell
exclude: ^pando-drv/|scripts/comparison.py
- repo: https://github.com/pocc/pre-commit-hooks
rev: v1.3.5
hooks:
- id: clang-format
exclude: ^pando-drv/
args: [-i]
- id: cpplint
exclude: ^pando-drv/
args: [--quiet]