forked from azimuttapp/azimutt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
174 lines (150 loc) · 4.76 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
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-database-types
name: 'Libs/Database types'
language: system
entry: bash -c 'cd libs/database-types && exec npm run build && exec npm test'
pass_filenames: false
files: libs/database-types/.*\.ts*$
- id: libs-shared
name: 'Libs/Shared'
language: system
entry: bash -c 'cd libs/shared && exec npm run build && exec npm test'
pass_filenames: false
files: libs/shared/.*\.ts*$
- id: libs-json-infer-schema
name: 'Libs/Json infer schema'
language: system
entry: bash -c 'cd libs/json-infer-schema && exec npm run build && exec npm test'
pass_filenames: false
files: libs/json-infer-schema/.*\.ts*$
- id: libs-connector-couchbase
name: 'Libs/Couchbase connector'
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/MariaDB connector'
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/MongoDB connector'
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/MySQL connector'
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/PostgreSQL connector'
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-sqlserver
name: 'Libs/SQL Server connector'
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: mix-format
name: 'Elixir format'
language: system
entry: bash -c 'cd backend && exec mix format --check-formatted'
files: \.exs*$
- id: mix-lint
name: 'Elixir lint'
language: system
entry: npm run ex:lint
pass_filenames: false
files: \.exs*$
- id: mix-test
name: 'Elixir test'
language: system
entry: npm run ex:test
pass_filenames: false
files: \.exs*$
- id: mix-build
name: 'Elixir build'
language: system
entry: npm run ex:build
pass_filenames: false
files: \.ex$
- id: elm-test
name: 'Elm test'
language: system
entry: npm run elm:test
pass_filenames: false
files: \.elm*$
- id: elm-lint
name: 'Elm lint'
language: system
entry: npm run elm:lint
pass_filenames: false
files: \.elm*$
- id: elm-build
name: 'Elm build'
language: system
entry: npm run elm:build
pass_filenames: false
files: \.elm*$
- id: elm-format
name: 'Elm format'
language: system
entry: npm run elm:format
pass_filenames: false
files: \.elm*$
- id: frontend-build
name: 'Frontend TS build'
language: system
entry: npm run ts:lint
pass_filenames: false
files: frontend/.*\.ts*$
- id: frontend-test
name: 'Frontend TS test'
language: system
entry: 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