-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
37 lines (33 loc) · 1.01 KB
/
.pre-commit-config.yaml
File metadata and controls
37 lines (33 loc) · 1.01 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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
- id: check-added-large-files
# Check code style (indentations, line breaks, etc..)
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.7
hooks:
- id: clang-format
args: ["-style=file"]
files: src/.*
exclude: src/libTierces/.*
stages: [pre-commit]
# propose commit message title style ('<branch_name>: ...')
- repo: local
hooks:
- id: prepare-commit-msg
name: prepare-commit-msg
entry: ./scripts/preCommitHooks/prepare-commit-msg.sh
language: script
stages: [prepare-commit-msg]
# check commit message title style ('<branch_name>: ...')
- repo: local
hooks:
- id: commit-msg
name: check-commit-msg
entry: ./scripts/preCommitHooks/commit-msg.sh
language: script
stages: [commit-msg]