-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
47 lines (47 loc) · 1.36 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: check-yaml
- id: check-added-large-files
- id: check-ast
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
exclude: >-
(?x)^(
exts/.*|
tools/prettify/fprettify/.|
tools/build_utils/fypp|
)$
- repo: local
hooks:
- id: doxify
name: Run doxify
entry: ./tools/doxify/doxify.sh
language: script
files: '^src/.*\.(F|f90)$'
- id: prettify
name: Run prettify
entry: ./tools/prettify/prettify.py --no-report-errors
language: script
files: '^src/.*\.(F|f90)$'
exclude: >-
(?x)^(
src/base/base_uses.f90|
src/common/util.F|
)$
- id: analyze_src
name: Run analyze_src
entry: ./tools/conventions/analyze_src.py --fail --suppressions ./tools/conventions/conventions.supp
language: script
files: '^src/.*\.(F|fypp|c|cu|cpp|h|hpp)$'
- id: regen_data
name: Regenerate checked-in data files
entry: make --always-make data
language: system
files: 'data/*'
pass_filenames: false