forked from supercollider/supercollider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
30 lines (30 loc) · 919 Bytes
/
.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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-merge-conflict
- id: check-case-conflict
- repo: local
hooks:
- id: clang_format
name: Format C++ code
entry: python tools/clang-format.py format
pass_filenames: false
types_or:
- "c++"
language: python
additional_dependencies: ['clang-format==14.0.6']
- id: clang_lint
name: Lint C++ code
entry: python tools/clang-format.py lint
pass_filenames: false
types_or:
- "c++"
language: python
additional_dependencies: ['clang-format==14.0.6']
- id: sc_empty_blank_lines
name: Check trailing blank lines in sclang
entry: python tools/remove_trailing_blank_lines.py
pass_filenames: true
files: '\.sc((d|help)?)$'
language: python