-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
35 lines (31 loc) · 993 Bytes
/
.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
default_stages: [ commit, prepare-commit-msg ]
repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v4.3.0"
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-added-large-files
exclude: docs/specs/.*\.pdf
- id: check-shebang-scripts-are-executable
- id: check-merge-conflict
stages: [ merge-commit ]
- repo: "https://github.com/d4ilyrun/pre-commit-hooks"
rev: "v1.0.6"
hooks:
- id: shellcheck
- id: apply-nixpkgs-fmt
- repo: https://github.com/compilerla/conventional-pre-commit
rev: "v2.1.1"
hooks:
- id: conventional-pre-commit
stages: [commit-msg]
args: [feat, fix, ci, chore, test, docs, fixup!, merge, refacto]
- repo: local
hooks:
- id: check-clang-format
name: Formatting C source files
entry: meson --internal clangformat . ./build
language: system
types: ['c']
pass_filenames: false