forked from espressomd/espresso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
37 lines (34 loc) · 1.01 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
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|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'
args: ["--ignore=E266,E701,W291,W293", "--in-place", "--aggressive"]
- id: cmake-format
name: cmake-format
entry: sh maintainer/format/cmake-format.sh
language: system
always_run: false
files: 'CMakeLists.txt'
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]