-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
30 lines (29 loc) · 943 Bytes
/
.pre-commit-config.yaml
File metadata and controls
30 lines (29 loc) · 943 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
repos:
# 官方仓库中的基础钩子
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: check-xml
- id: check-yaml
args: ["--allow-multiple-documents"]
- id: debug-statements
- id: end-of-file-fixer
- id: mixed-line-ending
- id: trailing-whitespace
exclude_types: [rst]
- id: fix-byte-order-marker
# 运行 Uncrustify 格式化 C/C++ 代码
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: "v20.1.0" # 指定 clang-format 版本
hooks:
- id: clang-format
name: clang-format (check)
args: [--style=file, --dry-run, --Werror] # 检查模式
types: [c, c++]
exclude:
detection_6d_foundationpose/src/nvdiffrast(/.*)?