-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy path.pre-commit-config.yaml
72 lines (65 loc) · 1.94 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
# 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.4.0
hooks:
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-yaml
- id: mixed-line-ending
- id: end-of-file-fixer
# `(?x)` enables multi-line regexps: https://docs.python.org/3/library/re.html#re.X.
exclude: |
(?x)(
# Vendored files for the Herd web interface.
^herd-www/www/(
ace/|
BS/|
FileSaver.min.js|
fonts/|
viz.js|
whhg-font/
)|
# Expected files should be left verbatim.
\.expected(-failure)?$
)
- id: trailing-whitespace
# `(?x)` enables multi-line regexps: https://docs.python.org/3/library/re.html#re.X.
exclude: |
(?x)(
# Vendored files for the Herd web interface.
^herd-www/www/(
ace/|
BS/|
FileSaver.min.js|
fonts/|
viz.js|
whhg-font/
)|
# Expected files should be left verbatim.
\.expected(-failure)?$
)
- repo: https://github.com/arenadotio/pre-commit-ocamlformat
rev: 0439858f79b3bcb49e757278eb1312e212d7dd4f
hooks:
- id: ocamlformat
types: [ocaml]
- repo: local
hooks:
- id: make-test
name: Run make test
language: system
entry: make test
files: (dune|\.ml.*$|\.litmus.*$)
pass_filenames: false
- id: opam-lint
name: opam lint
language: system
entry: opam lint
files: (\.opam$)
- id: lint-shelves
name: Lint Catalogue shelves
language: system
entry: internal/run_built_binary lint_shelves
files: shelf.py$