forked from azimuttapp/azimutt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
202 lines (174 loc) · 5.95 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
repos:
- repo: local
hooks:
- id: libs-utils
name: 'libs/utils'
language: system
entry: bash -c 'cd libs/utils && exec npm run build && exec npm test'
pass_filenames: false
files: libs/utils/.*\.ts*$
- id: libs-models
name: 'libs/models'
language: system
entry: bash -c 'cd libs/models && exec npm run build && exec npm test'
pass_filenames: false
files: libs/models/.*\.ts*$
- id: libs-connector-bigquery
name: 'libs/connector-bigquery'
language: system
entry: bash -c 'cd libs/connector-bigquery && exec npm run build && exec npm test'
pass_filenames: false
files: libs/connector-bigquery/.*\.ts*$
- id: libs-connector-couchbase
name: 'libs/connector-couchbase'
language: system
entry: bash -c 'cd libs/connector-couchbase && exec npm run build && exec npm test'
pass_filenames: false
files: libs/connector-couchbase/.*\.ts*$
- id: libs-connector-mariadb
name: 'libs/connector-mariadb'
language: system
entry: bash -c 'cd libs/connector-mariadb && exec npm run build && exec npm test'
pass_filenames: false
files: libs/connector-mariadb/.*\.ts*$
- id: libs-connector-mongodb
name: 'libs/connector-mongodb'
language: system
entry: bash -c 'cd libs/connector-mongodb && exec npm run build && exec npm test'
pass_filenames: false
files: libs/connector-mongodb/.*\.ts*$
- id: libs-connector-mysql
name: 'libs/connector-mysql'
language: system
entry: bash -c 'cd libs/connector-mysql && exec npm run build && exec npm test'
pass_filenames: false
files: libs/connector-mysql/.*\.ts*$
- id: libs-connector-postgres
name: 'libs/connector-postgres'
language: system
entry: bash -c 'cd libs/connector-postgres && exec npm run build && exec npm test'
pass_filenames: false
files: libs/connector-postgres/.*\.ts*$
- id: libs-connector-snowflake
name: 'libs/connector-snowflake'
language: system
entry: bash -c 'cd libs/connector-snowflake && exec npm run build && exec npm test'
pass_filenames: false
files: libs/connector-snowflake/.*\.ts*$
- id: libs-connector-sqlserver
name: 'libs/connector-sqlserver'
language: system
entry: bash -c 'cd libs/connector-sqlserver && exec npm run build && exec npm test'
pass_filenames: false
files: libs/connector-sqlserver/.*\.ts*$
- id: libs-serde-aml
name: 'libs/serde-aml'
language: system
entry: bash -c 'cd libs/serde-aml && exec npm run build && exec npm test'
pass_filenames: false
files: libs/serde-aml/.*\.ts*$
- id: libs-serde-dbml
name: 'libs/serde-dbml'
language: system
entry: bash -c 'cd libs/serde-dbml && exec npm run build && exec npm test'
pass_filenames: false
files: libs/serde-dbml/.*\.ts*$
- id: libs-serde-prisma
name: 'libs/serde-prisma'
language: system
entry: bash -c 'cd libs/serde-prisma && exec npm run build && exec npm test'
pass_filenames: false
files: libs/serde-prisma/.*\.ts*$
- id: libs-serde-sql
name: 'libs/serde-sql'
language: system
entry: bash -c 'cd libs/serde-sql && exec npm run build && exec npm test'
pass_filenames: false
files: libs/serde-sql/.*\.ts*$
- id: mix-format
name: 'Elixir format'
language: system
entry: bash -c 'cd backend && exec mix format --check-formatted && exec mix format'
files: \.exs*$
- id: mix-build
name: 'Elixir build'
language: system
entry: bash -c 'cd backend && exec mix compile --force'
pass_filenames: false
files: \.ex$
- id: mix-lint
name: 'Elixir lint'
language: system
entry: bash -c 'cd backend && exec mix credo --strict'
pass_filenames: false
files: \.exs*$
- id: mix-test
name: 'Elixir test'
language: system
entry: bash -c 'cd backend && exec mix test'
pass_filenames: false
files: \.exs*$
- id: elm-format
name: 'Elm format'
language: system
entry: bash -c 'cd frontend && exec npm run elm:format'
pass_filenames: false
files: \.elm*$
- id: elm-build
name: 'Elm build'
language: system
entry: bash -c 'cd frontend && exec npm run elm:build'
pass_filenames: false
files: \.elm*$
- id: elm-lint
name: 'Elm lint'
language: system
entry: bash -c 'cd frontend && exec npm run elm:lint'
pass_filenames: false
files: \.elm*$
- id: elm-test
name: 'Elm test'
language: system
entry: bash -c 'cd frontend && exec npm run elm:test'
pass_filenames: false
files: \.elm*$
- id: frontend-build
name: 'Frontend TS build'
language: system
entry: bash -c 'cd frontend && exec npm run ts:lint'
pass_filenames: false
files: frontend/.*\.ts*$
- id: frontend-test
name: 'Frontend TS test'
language: system
entry: bash -c 'cd frontend && exec npm run ts:test'
pass_filenames: false
files: frontend/.*\.ts*$
- id: gateway
name: 'Gateway'
language: system
entry: bash -c 'cd gateway && exec npm run lint && exec npm run check:types && exec npm test'
pass_filenames: false
files: gateway/.*\.ts*$
- id: cli
name: 'CLI'
language: system
entry: bash -c 'cd cli && exec npm run build && exec npm test'
pass_filenames: false
files: cli/.*\.ts*$
# No test or build for browser-extension
# No test or build for desktop
- repo: https://github.com/commitizen-tools/commitizen
rev: v2.32.2
hooks:
- id: commitizen
- id: commitizen-branch
stages: [push]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.3.0
hooks:
- id: trailing-whitespace
exclude_types: [markdown]
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer