forked from precice/precice
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
52 lines (52 loc) · 1.33 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
repos:
# Official repo for the clang-format hook
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: 'v8.0.1'
hooks:
- id: clang-format
exclude: "^thirdparty"
# Official repo for default hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: 'v4.3.0'
hooks:
- id: check-xml
- id: check-merge-conflict
- id: mixed-line-ending
exclude: "^thirdparty"
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
exclude: "^thirdparty"
- id: end-of-file-fixer
exclude: "^thirdparty"
# isort for python imports
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
name: isort (python)
exclude: "^thirdparty"
# black repo for python formatting
- repo: https://github.com/ambv/black
rev: 22.12.0
hooks:
- id: black
exclude: "^thirdparty"
# Custom repo for the preCICE configuration formatter
- repo: https://github.com/precice/precice-pre-commit-hooks
rev: 'v3.1'
hooks:
- id: format-precice-config
- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
hooks:
- id: codespell
exclude: "^thirdparty"
- repo: local
hooks:
- id: update-cmake-sources
name: update CMake sources
entry: tools/building/updateSourceFiles.py
pass_filenames: false
require_serial: true
language: python
types_or: [c, c++]