-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
56 lines (50 loc) · 1.54 KB
/
.pre-commit-config.yaml
File metadata and controls
56 lines (50 loc) · 1.54 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: mixed-line-ending
args: ["--fix=lf"]
- id: end-of-file-fixer
- id: trailing-whitespace
args: ["--markdown-linebreak-ext=md"]
- id: check-merge-conflict
- id: check-case-conflict
- id: check-illegal-windows-names
- id: check-added-large-files
args: ["--maxkb=1024"]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.15
hooks:
- id: ruff-format
- repo: https://github.com/BlankSpruce/gersemi-pre-commit
rev: 0.27.7
hooks:
- id: gersemi
args: ["--indent", "2"]
exclude: '^(subprojects|build|bazel-.*)/'
- repo: https://github.com/keith/pre-commit-buildifier
rev: 8.2.1
hooks:
- id: buildifier
exclude: '^(subprojects|build|bazel-.*)/'
- repo: https://github.com/rhysd/actionlint
rev: v1.7.8
hooks:
- id: actionlint
- repo: local
hooks:
- id: meson-format
name: meson format
language: python
additional_dependencies: ["meson==1.10.1"]
entry: meson
args: ["format", "--check-only", "--recursive", "meson.build"]
pass_filenames: false
files: '(^|/)(meson\.build|meson\.options|meson_options\.txt)$'
- id: clang-format
name: clang-format
language: python
additional_dependencies: ["clang-format==22.1.5"]
entry: python3 tools/format_cpp.py
pass_filenames: false
files: '\.(h|ixx|cpp|md)$'