-
Notifications
You must be signed in to change notification settings - Fork 88
/
.pre-commit-config.yaml
35 lines (35 loc) · 1.14 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
repos:
- 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: 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
)$
- id: update-ginkgo-header
name: update ginkgo header
entry: dev_tools/scripts/update_ginkgo_header.sh
language: script
types: [header]
pass_filenames: false
files: ^include/ginkgo/core