forked from cp2k/cp2k
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
54 lines (54 loc) · 1.56 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
53
54
# 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.0.0
hooks:
- id: check-yaml
- id: check-added-large-files
- id: check-ast
- id: check-ast
name: Check python ast (with Python 2.7)
language_version: python2.7
stages: [manual]
- id: check-ast
name: Check python ast (with Python 3)
language_version: python3
stages: [manual]
- repo: https://github.com/ambv/black
rev: stable
hooks:
- id: black
exclude: >-
(?x)^(
exts/.*|
tools/prettify/fprettify/.|
)$
- 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
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