-
Notifications
You must be signed in to change notification settings - Fork 187
/
.pre-commit-config.yaml
48 lines (44 loc) · 1.47 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
fail_fast: false
exclude: 'libs'
repos:
- repo: local
hooks:
- id: clang-format
name: clang-format
entry: sh maintainer/format/clang-format.sh
language: system
always_run: false
files: '.*\.(cpp|hpp|h|cu|cuh)'
exclude: '^libs/|^src/walberla_bridge/src/.*/generated_kernels/.*\.(cpp|cu)|^maintainer/walberla_kernels/templates/.*\.tmpl\.(cpp|hpp|h|cu|cuh)'
args: ["-i", "-style=file"]
- id: autopep8
name: autopep8
entry: sh maintainer/format/autopep8.sh
language: system
always_run: false
files: '.*\.(py|pyx|pxd)'
exclude: '\.pylintrc|.*.\.py\.in|^libs/'
args: ["--ignore=E266,E402,E701,W291,W293", "--in-place"]
- id: cmake-format
name: cmake-format
entry: sh maintainer/format/cmake-format.sh
language: system
always_run: false
files: 'CMakeLists.txt'
exclude: '^libs/h5xx/|^libs/Random123-1\.09/'
args: ["-i"]
- id: ex-flags
name: executable flags
entry: sh maintainer/format/ex_flag.sh
language: system
always_run: false
exclude: '.*\.(sh|py|sh\.in|cmakein)|.git'
types: [file, executable]
- id: pylint
name: pylint
entry: sh maintainer/lint/pylint.sh
language: system
always_run: false
files: '.*\.py'
args: ["--score=no", "--reports=no", "--output-format=text"]
log_file: pylint.log