Skip to content

Commit 2d177ec

Browse files
chore!: license change to MPL Version 2.0 (#899)
#### Migration notes All license headers has changed to MPL 2.0. - [x] The change comes with new or modified tests - [ ] Hard-to-understand functions have explanatory comments - [ ] End-user documentation is updated to reflect the change --------- Signed-off-by: michael-0acf4 <[email protected]>
1 parent b978d84 commit 2d177ec

File tree

426 files changed

+1639
-1358
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

426 files changed

+1639
-1358
lines changed

.pre-commit-config.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ repos:
2828
- id: deno-fmt
2929
name: Deno format
3030
language: system
31-
entry: bash -c 'cd typegate && deno fmt --ignore=native,src/typegraphs,tmp,tests/e2e/nextjs,tests/metagen/typegraphs/sample/ts/client.ts && cd ../dev && deno fmt && cd ../typegraph/deno && deno fmt --ignore=node_modules,dist && cd ../../libs/metagen/src && deno fmt'
31+
entry: bash -c 'cd src/typegate && deno fmt --ignore=native,src/typegraphs,tmp,tests/e2e/nextjs,tests/metagen/typegraphs/sample/ts/client.ts && cd ../../tools && deno fmt && cd ../src/typegraph/deno && deno fmt --ignore=node_modules,dist && cd ../../../src/metagen/src && deno fmt'
3232
pass_filenames: false
3333
types:
3434
- ts
35-
files: ^(typegate|dev|typegraph/deno)/
35+
files: ^(src/typegate|tools|src/typegraph/deno)/
3636
- id: deno-lint
3737
name: Deno lint
3838
language: system
39-
entry: bash -c 'cd typegate && deno lint --rules-exclude=no-explicit-any --ignore=native,tmp,tests/e2e/nextjs && cd ../dev && deno lint && cd ../libs/metagen/src/ && deno lint'
39+
entry: bash -c 'cd src/typegate && deno lint --rules-exclude=no-explicit-any --ignore=native,tmp,tests/e2e/nextjs && cd ../../tools && deno lint && cd ../src/metagen/src/ && deno lint'
4040
pass_filenames: false
4141
types:
4242
- ts
43-
files: ^(typegate|dev)/
43+
files: ^(src/typegate|tools)/
4444
- id: es-lint
4545
name: Eslint website
4646
language: system
@@ -100,17 +100,17 @@ repos:
100100
name: "License MPL-2.0 python"
101101
args:
102102
#- --remove-header
103-
- --license-filepath=dev/license-header-MPL-2.0.txt
103+
- --license-filepath=tools/license-header-MPL-2.0.txt
104104
- "--comment-style=#"
105105
- "--skip-license-insertion-comment=no-auto-license-header"
106106
types_or:
107107
- python
108108
files: ^typegraph/
109109
- id: insert-license
110-
name: "License Elastic-2.0 rust"
110+
name: "License MPL-2.0 rust"
111111
args:
112112
#- --remove-header
113-
- --license-filepath=dev/license-header-Elastic-2.0.txt
113+
- --license-filepath=tools/license-header-MPL-2.0.txt
114114
- "--comment-style=//"
115115
- "--skip-license-insertion-comment=no-auto-license-header"
116116
- "--skip-license-insertion-comment=@generated"
@@ -121,38 +121,38 @@ repos:
121121
name: "License MPL-2.0 rust"
122122
args:
123123
#- --remove-header
124-
- --license-filepath=dev/license-header-MPL-2.0.txt
124+
- --license-filepath=tools/license-header-MPL-2.0.txt
125125
- "--comment-style=//"
126126
- "--skip-license-insertion-comment=no-auto-license-header"
127127
types_or:
128128
- rust
129129
files: ^(meta-cli|typegraph|libs/metagen)/
130130
- id: insert-license
131-
name: "License Elastic-2.0 deno"
131+
name: "License MPL-2.0 deno"
132132
args:
133133
#- --remove-header
134-
- --license-filepath=dev/license-header-Elastic-2.0.txt
134+
- --license-filepath=tools/license-header-MPL-2.0.txt
135135
- "--comment-style=//"
136136
- "--skip-license-insertion-comment=no-auto-license-header"
137137
- "--skip-license-insertion-comment=@generated"
138138
types_or:
139139
- ts
140-
files: ^(typegate|dev)/
140+
files: ^(typegate|tools)/
141141
- id: insert-license
142142
name: "License MPL-2.0 deno"
143143
args:
144144
#- --remove-header
145-
- --license-filepath=dev/license-header-MPL-2.0.txt
145+
- --license-filepath=tools/license-header-MPL-2.0.txt
146146
- "--comment-style=//"
147147
- "--skip-license-insertion-comment=no-auto-license-header"
148148
types_or:
149149
- ts
150150
files: ^typegraph/
151151
- id: insert-license
152-
name: "License Elastic-2.0 typescript"
152+
name: "License MPL-2.0 typescript"
153153
args:
154154
#- --remove-header
155-
- --license-filepath=dev/license-header-Elastic-2.0.txt
155+
- --license-filepath=tools/license-header-MPL-2.0.txt
156156
- "--comment-style=//"
157157
- "--skip-license-insertion-comment=no-auto-license-header"
158158
types_or:

0 commit comments

Comments
 (0)