Repository navigation
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
66 lines (63 loc) · 1.55 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
66 lines (63 loc) · 1.55 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
exclude: |
(?x)(
^build/|
^Docs|
^third_party/
)
default_language_version:
python: python3.10
repos:
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.5
hooks:
- id: insert-license
files: (CMakeLists\.txt|\.(sh|py|cmake)$)
exclude: |
(?x)^(
build/.*|
ThirdParty/.*|
)$
args:
- --license-filepath
- .pre-commit-license-header.txt
- --allow-past-years
- id: insert-license
files: \.(c|cpp|h|hpp|cu|cuh|js)$
exclude: |
(?x)^(
build/.*|
ThirdParty/.*|
)$
args:
- --license-filepath
- .pre-commit-license-header.txt
- --comment-style
- //
- --allow-past-years
- id: insert-license
files: \.rst$
exclude: |
(?x)^(
build/.*|
ThirdParty/.*|
)$
args:
- --license-filepath
- .pre-commit-license-header.txt
- --comment-style
- ".."
- --allow-past-years
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
args: [--allow-multiple-documents]
- id: trailing-whitespace
- id: check-added-large-files
args: ["--maxkb=1024"]
- id: check-merge-conflict
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.11.9
hooks:
- id: ruff-format
types_or: [ python, pyi ]