-
-
Notifications
You must be signed in to change notification settings - Fork 112
/
.pre-commit-config.yaml
50 lines (50 loc) · 1.47 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
repos:
# Official repo for default hooks
- repo: https://github.com/precice/precice-pre-commit-hooks
rev: 'v3.3'
hooks:
- id: format-precice-config
- repo: https://github.com/igorshubovych/markdownlint-cli
rev: v0.30.0
hooks:
- id: markdownlint
exclude: ^(.github/pull_request_template.md|changelog-entries)
- id: markdownlint-fix
exclude: ^(.github/pull_request_template.md|changelog-entries)
- repo: https://github.com/hhatto/autopep8
rev: v2.0.4
hooks:
- id: autopep8
args: [ --in-place, --exit-code, --aggressive, --ignore=E402, --max-line-length=120 ]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v14.0.6'
hooks:
- id: clang-format
exclude: '\.(json|m|mm)$'
- repo: https://github.com/koalaman/shellcheck-precommit
rev: v0.10.0
hooks:
- id: shellcheck
args: [ --external-sources, --exclude=SC1091 ]
- repo: local
hooks:
- id: check-image-naming
name: check image names
language: python
entry: tools/check-image-names.py
files: ".*/images/.*"
- id: check-size
name: check sizes
language: script
entry: tools/check-size.sh
pass_filenames: false
- id: check-names
name: check file names
language: script
entry: tools/check.sh
pass_filenames: false
- id: check-links-to-precice
name: check links to precice.org
language: script
entry: tools/check-links-to-precice.sh
types_or: ["markdown", "html"]