forked from OpenAtom-Linyaps/linyaps
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
53 lines (48 loc) · 1.13 KB
/
.pre-commit-config.yaml
File metadata and controls
53 lines (48 loc) · 1.13 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
# SPDX-FileCopyrightText: None
#
# SPDX-License-Identifier: CC0-1.0
exclude: |
(?x)^(
docs/|
build/|
external/|
cmake/|
LICENSES/|
misc/image/|
po/|
tools/quicktype/|
tools/openapi-c-libcurl-client/|
.obs/|
misc/share/linglong/builder/templates/|
apps/ll-builder-utils/patch/
)
ci:
autofix_prs: false
autoupdate_schedule: 'monthly'
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-json
- id: check-toml
- id: check-added-large-files
- id: check-xml
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v21.1.8
hooks:
- id: clang-format
name: clang-format (C/C++)
files: \.(c|cc|cpp|cxx|h|hpp)$
args: ['-i', '--sort-includes', '--style=file']
exclude: |
(?x)^(
libs/api/src/linglong/api/types/v1/
)
- repo: https://github.com/scop/pre-commit-shfmt
rev: v3.12.0-2
hooks:
- id: shfmt
args: ['-i', '4', '-ci', '-sr']