-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.pre-commit-config.yaml
46 lines (46 loc) · 1.35 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
repos:
# Official repo for the clang-format hook
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: "v14.0.6"
hooks:
- id: clang-format
exclude: "^thirdparty"
types_or: [c++, c]
# isort for python imports
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
# black repo for python formatting
- repo: https://github.com/ambv/black
rev: 22.12.0
hooks:
- id: black
# Official repo for default hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.4.0"
hooks:
- id: check-xml
exclude: "tools"
- id: check-merge-conflict
- id: mixed-line-ending
- id: trailing-whitespace
- id: end-of-file-fixer
- id: requirements-txt-fixer
# Custom repo for the preCICE configuration formatter
- repo: https://github.com/precice/precice-pre-commit-hooks
rev: "v3.2"
hooks:
- id: format-precice-config
exclude: "tools"
- id: check-image-prefix
files: "^docs/images/.*"
args: [ --prefix=docs-tooling-aste- ]
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.39.0
hooks:
- id: markdownlint
exclude: 'changelog-entries|^CHANGELOG\.md$'
- id: markdownlint-fix
exclude: 'changelog-entries|^CHANGELOG\.md$'