forked from rivosinc/hammer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
86 lines (78 loc) · 2.37 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# SPDX-FileCopyrightText: 2023 Rivos Inc.
#
# SPDX-License-Identifier: Apache-2.0
repos:
# pull mirror from: https://github.com/pre-commit/pre-commit-hooks
- repo: https://gitlab.ba.rivosinc.com/pub/it/pre-commit-hooks.git
rev: v4.1.0
hooks:
- id: check-added-large-files
- id: check-ast
- id: check-builtin-literals
- id: check-case-conflict
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-shebang-scripts-are-executable
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
- id: debug-statements
- id: detect-private-key
- id: forbid-new-submodules
- id: end-of-file-fixer
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: ".patch"
# - repo: https://github.com/PyCQA/isort
- repo: https://gitlab.ba.rivosinc.com/pub/it/isort
rev: "5.10.1"
hooks:
- id: isort
args:
- --profile
- google
- --filter-files
# pull mirror from: https://github.com/google/yapf
- repo: https://gitlab.ba.rivosinc.com/pub/it/yapf
rev: v0.31.0
hooks:
- id: yapf
# pull mirror of https://github.com/fsfe/reuse-tool (slightly modified)
- repo: https://github.com/rivosinc/reuse-tool
rev: '3a95909a30d51467575a95b8cabdc7949bb8e7bd'
hooks:
# Add copyright/license header
- id: reuse-annotate
args:
- -c=Rivos Inc.
- -l=Apache-2.0
- --skip-unrecognised
# Check compliance
- id: reuse
# pull mirror from: https://github.com/jumanjihouse/pre-commit-hooks.git
- repo: https://gitlab.ba.rivosinc.com/pub/it/jumanjihouse_pre-commit-hooks
rev: 2.1.5
hooks:
- id: shellcheck
- id: shfmt
args:
- -i 2
- -ci
# pull mirror of https://github.com/ikamensh/flynt/
- repo: https://gitlab.ba.rivosinc.com/pub/it/flynt
rev: '0.76'
hooks:
- id: flynt
# pull mirror of https://github.com/asottile/pyupgrade
- repo: https://gitlab.ba.rivosinc.com/pub/it/pyupgrade
rev: v2.31.0
hooks:
- id: pyupgrade
# mirror of https://github.com/pre-commit/mirrors-clang-format
- repo: https://gitlab.ba.rivosinc.com/pub/it/mirrors-clang-format
rev: v13.0.1
hooks:
- id: clang-format