-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
70 lines (63 loc) · 1.77 KB
/
Copy path.pre-commit-config.yaml
File metadata and controls
70 lines (63 loc) · 1.77 KB
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.3.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
exclude: (svg|icomoon)
- id: trailing-whitespace
- id: no-commit-to-branch
name: "don't commit to main"
args: [--branch, main]
- repo: local
hooks:
- id: app-prettier
name: run prettier
language: system
files: ^.*$
exclude: data
types_or: [javascript]
entry: |
bash -c 'npm --prefix . run fix:prettier -- "${@}"'
- id: app-ruff-check
name: run ruff check
language: system
files: ^.*$
types_or: [python]
entry: |
bash -c 'npm --prefix . run fix:ruff:check "${@}"' --
- id: app-ty-check
name: run ty check
language: system
files: ^.*$
types_or: [python]
entry: |
bash -c 'npm --prefix . run fix:ty:check "${@}"' --
- id: app-ruff-format
name: run ruff format
language: system
files: ^.*$
types_or: [python]
entry: |
bash -c 'npm --prefix . run fix:ruff:format "${@}"' --
- id: app-elm-format
name: run elm-format
language: system
files: ^.*$
exclude: data
types_or: [elm]
entry: |
bash -c 'npm --prefix . run fix:elm-format "${@}"' --
- id: fix-json
name: run JSON formatter
language: system
types_or: [json]
entry: |
bash -c 'npm --prefix . run fix:json "${@}"' --
- id: check-json-schemas
name: check json schemas
language: system
files: ^data/public/data/processes.*\.json$
types_or: [json]
entry: |
bash -c 'just check-processes'