-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
50 lines (47 loc) · 1.34 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
49
50
default_language_version:
node: 17.9.0
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.0.1
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- id: check-case-conflict
- id: mixed-line-ending
- repo: https://github.com/psf/black
rev: 21.12b0
hooks:
- id: black
args: [-l 90]
additional_dependencies: ["click==8.0.4"]
# - repo: https://github.com/pre-commit/mirrors-prettier
# rev: v2.5.1
# hooks:
# - id: prettier
# args: [--print-width=80, --prose-wrap=always]
- repo: local
hooks:
- id: clang-format
name: clang-format
description: Formats C, C++, Objective-C, and Java code
entry: clang-format
args: [-i]
language: python
types: [c++]
- id: cmake-lint
name: cmake-lint
description:
cmake-lint will check your listfiles for style violations, common
mistakes, and anti-patterns.
entry: cmake-lint
language: python
types: [cmake]
- id: cmake-format
name: cmake-format
description:
cmake-format can format your listfiles nicely so that they don't look
like crap.
entry: cmake-format -c cmake_format.yaml
args: [-i]
language: python
types: [cmake]