-
Notifications
You must be signed in to change notification settings - Fork 53
/
.pre-commit-config.yaml
69 lines (62 loc) · 1.8 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
# $ pip install pre-commit
# $ pre-commit install
# $ pre-commit run --all-files
# 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: v4.5.0
hooks:
- id: check-yaml
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-toml
- id: detect-private-key
- id: mixed-line-ending
exclude: tests/
- id: trailing-whitespace
exclude: tests/
- id: end-of-file-fixer
exclude: tests/|assets/
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 3.0.0
hooks:
- id: forbid-binary
name: forbid binary files
exclude: assets/
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
- id: prettier
types_or: [css, javascript, markdown, yaml]
exclude: examples/|tests/|assets/
- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
hooks:
- id: prettier
types_or: [json]
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v18.1.4
hooks:
- id: clang-format
files: runtime/.+\.(c|h)$
- repo: local
hooks:
- id: format-juvix-files
name: format Juvix examples
entry: make format-juvix-files
language: system
verbose: true
pass_filenames: false
- id: typecheck-juvix-examples
name: typecheck Juvix examples
entry: make typecheck-juvix-examples
language: system
verbose: true
pass_filenames: false
- id: ormolu
name: format Haskell code with ormolu
entry: make -s ormolu
language: system
pass_filenames: false