-
Notifications
You must be signed in to change notification settings - Fork 94
/
Copy path.pre-commit-config.yaml
38 lines (38 loc) · 1.18 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v14.0.0' # The default in Ubuntu 22.04, which is used in our CI
hooks:
- id: clang-format
types_or: [c, c++, cuda, inc]
exclude: |
(?x)^(
third_party/SuiteSparse/AMD/.*|
third_party/identify_stream_usage/.*|
include/ginkgo/ginkgo.hpp
)
- repo: https://github.com/BlankSpruce/gersemi
rev: 0.19.0
hooks:
- id: gersemi
name: cmake-format
files: ^cmake|CMakeLists.txt
- repo: local
hooks:
# The official reuse hook only supports calling lint, so we need our own hook
- id: reuse-annotate
name: reuse-annotate
entry: reuse annotate --license BSD-3-Clause --copyright 'The Ginkgo authors' --style c --merge-copyright
language: python
additional_dependencies: [reuse==2.1.0]
types_or: [c, c++, cuda, inc]
exclude: |
(?x)^(
third_party/SuiteSparse/AMD/.*|
third_party/identify_stream_usage/.*|
examples/external-lib-interfacing/external-lib-interfacing.cpp|
core/base/workspace_aliases.hpp
)$