-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.pre-commit-config.yaml
80 lines (79 loc) · 2.1 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
- id: double-quote-string-fixer
- id: end-of-file-fixer
- id: mixed-line-ending
# this would affect all CIF files, changing their hashkeys
# - id: trailing-whitespace
- repo: local
hooks:
- id: csv-unique-doi
name: Check that DOIs are unique
entry: python ./.github/validate.py unique-dois
language: system
pass_filenames: false
files: >-
(?x)^(
cof-papers.csv
)$
- id: csv-unique-ids
name: Check that CURATED-COF IDs are unique
entry: python ./.github/validate.py unique-cof-ids
language: system
pass_filenames: false
files: >-
(?x)^(
cof-frameworks.csv
)$
- id: match-cifs
name: Check that all frameworks have a matching CIF
entry: python ./.github/validate.py match-cifs
language: system
pass_filenames: false
files: >-
(?x)^(
cof-frameworks.csv|
cifs/.*.cif
)$
- id: csv-unique-names
name: Check that CURATED-COF names are unique
entry: python ./.github/validate.py unique-cof-names
language: system
pass_filenames: false
files: >-
(?x)^(
cof-frameworks.csv
)$
- id: csv-consistent-paper-ids
name: Check that CURATED-COF paper ids are consistent
entry: python ./.github/validate.py consistent-paper-ids
language: system
pass_filenames: false
files: >-
(?x)^(
cof-frameworks.csv|
cof-discarded.csv|
cof-papers.csv
)$
- id: csv-sorted-ids
name: Check that CSV files have sorted indexes
entry: python ./.github/validate.py sorted-ids
language: system
pass_filenames: false
files: >-
(?x)^(
cof-frameworks.csv|
cof-discarded.csv|
cof-papers.csv
)$
- id: overlapping-atoms
name: Check that there are no overlapping atoms.
entry: python ./.github/validate.py overlapping-atoms
language: system
pass_filenames: true
files: >-
(?x)^(
cifs/.*.cif
)$