-
Notifications
You must be signed in to change notification settings - Fork 2
/
.pre-commit-config.yaml
57 lines (57 loc) · 1.75 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
repos:
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.2.0
hooks:
- id: forbid-crlf
- id: remove-crlf
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: check-added-large-files
args: ['--maxkb=20480'] # 20MB
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: trailing-whitespace
exclude: &exclude_txtfiles >-
(?x)^(
datasets/.*\.amn|
datasets/.*\.mmn|
datasets/.*\.eig|
datasets/.*\.chk|
datasets/.*\.chk\.fmt|
datasets/.*\.spn|
datasets/.*\.spn\.fmt|
datasets/.*\.uHu\.fmt|
datasets/.*\.mud|
datasets/.*\.nnkp|
datasets/.*\.wout|
datasets/.*\.wpout|
datasets/.*_band\.dat|
datasets/.*_band\.kpt|
datasets/.*_band\.labelinfo\.dat|
datasets/.*_tb\.dat|
datasets/.*_hr\.dat|
datasets/.*_r\.dat|
datasets/.*_wsvec\.dat|
datasets/.*\.xsf|
datasets/.*\.bxsf|
datasets/.*\.cube|
datasets/.*\.gnu|
datasets/.*-bands\.dat|
datasets/.*-curv\.dat|
datasets/.*-morb\.dat
)$
- id: mixed-line-ending
exclude: *exclude_txtfiles
- id: end-of-file-fixer
exclude: *exclude_txtfiles
- id: check-merge-conflict
- id: check-yaml
args: [ --unsafe ]
- id: check-json
- id: check-toml
- id: check-xml
- repo: https://github.com/qiaojunfeng/pre-commit-julia-format
rev: v0.1.1
hooks:
- id: julia-format