-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
34 lines (31 loc) · 922 Bytes
/
.pre-commit-config.yaml
File metadata and controls
34 lines (31 loc) · 922 Bytes
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: requirements-txt-fixer
- id: trailing-whitespace
exclude: ^(data|patches)/.*$
- id: end-of-file-fixer
exclude: ^(data|patches)/.*$
- id: check-yaml
exclude: ^data/
- repo: local
hooks:
- id: clang-format
name: Fix *.c,*.cc,*.cpp,*.h,*.hpp
entry: clang-format
language: system
files: ^(src|python|tools|tests|examples)/.*\.(c|cc|cpp|h|hpp)$
exclude: ^(src/opacity/microwave)/.*\.(c|cc|cpp|h|hpp)$
args: ["-i", "-style=Google"]
- id: cmake-format
name: Fix *.cmake
entry: cmake-format
language: system
files: .*\.cmake$
args: ["-i"]
- id: black
name: Fix *.py
entry: black
language: system
files: ^(tools|examples)/.*\.(py|.py.in)$