-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy path.pre-commit-config.yaml
48 lines (48 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
repos:
- repo: https://github.com/Lucas-C/pre-commit-hooks
rev: v1.5.4
hooks:
- id: forbid-crlf
- id: remove-crlf
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.5.0
hooks:
- id: check-added-large-files
args: ['--maxkb=5120'] # 5MB
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: trailing-whitespace
exclude: &exclude_txtfiles >-
(?x)^(
test/.*\.amn|
test/.*\.mmn|
test/.*\.vmn|
test/.*\.eig|
test/.*\.chk.fmt|
test/.*\.nnkp|
test/.*\.wout|
test/.*_band.dat|
test/.*_band.kpt|
test/.*_band.labelinfo.dat|
test/.*_tb.dat|
test/.*_wsvec.dat|
test/.*\.bxsf
)$
- 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
exclude: >-
(?x)^(
deps/statements.jl
)$