-
Notifications
You must be signed in to change notification settings - Fork 8
/
.pre-commit-config.yaml
54 lines (53 loc) · 1.44 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
51
52
53
54
ci:
autoupdate_schedule: quarterly
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v5.0.0'
hooks:
- id: end-of-file-fixer
exclude_types: [svg]
- id: trailing-whitespace
exclude_types: [svg]
- id: check-json
- id: check-yaml
- id: check-case-conflict
- id: mixed-line-ending
- repo: https://github.com/glotzerlab/fix-license-header
rev: v0.4.1
hooks:
- id: fix-license-header
name: Fix license headers (Python)
types_or: [python, cython]
args:
- --license-file=LICENSE
- --add=Part of fresnel, released under the BSD 3-Clause License.
- --keep-before=#!
- id: fix-license-header
name: Fix license headers (C)
types_or: [c, c++, cuda, inc]
args:
- --license-file=LICENSE
- --add=Part of fresnel, released under the BSD 3-Clause License.
- --comment-prefix=//
- id: fix-license-header
name: Fix license headers (reStructuredText)
types_or: [rst]
args:
- --license-file=LICENSE
- --add=Part of fresnel, released under the BSD 3-Clause License.
- --keep-after=.. include
- --comment-prefix=..
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.6.9
hooks:
- id: ruff
types_or: [ python ]
args: [ --fix ]
- id: ruff-format
types_or: [ python ]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.1
hooks:
- id: clang-format
types_or: [c, c++, cuda, inc]
exclude: (?:^extern/)