diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f49beb47ca..f8d1dcccce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -103,6 +103,7 @@ repos: - "--skip-license-insertion-comment=no-auto-license-header" types_or: - python + exclude: ^examples/ - id: insert-license name: "License MPL-2.0 rust" args: @@ -113,6 +114,7 @@ repos: - "--skip-license-insertion-comment=@generated" types_or: - rust + exclude: ^examples/ - id: insert-license name: "License MPL-2.0 typescript" args: @@ -123,6 +125,7 @@ repos: types_or: - ts - tsx + exclude: ^examples/ - repo: https://github.com/python-jsonschema/check-jsonschema rev: 0.28.6 hooks: diff --git a/docs/metatype.dev/docs/guides/securing-requests/cors.py b/docs/metatype.dev/docs/guides/securing-requests/cors.py index 58cf3b9372..50387d5dae 100644 --- a/docs/metatype.dev/docs/guides/securing-requests/cors.py +++ b/docs/metatype.dev/docs/guides/securing-requests/cors.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + # skip:start from typegraph import typegraph, Policy, t, Graph from typegraph.graph.params import Cors diff --git a/ghjk.ts b/ghjk.ts index 324ada15b9..dccf5150a7 100644 --- a/ghjk.ts +++ b/ghjk.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + // @ts-nocheck: Deno file import { METATYPE_VERSION, PUBLISHED_VERSION } from "./tools/consts.ts"; diff --git a/src/common/src/typegraph/validator/injection.rs b/src/common/src/typegraph/validator/injection.rs index cfdee4c4c2..09bd9cf381 100644 --- a/src/common/src/typegraph/validator/injection.rs +++ b/src/common/src/typegraph/validator/injection.rs @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + use indexmap::IndexMap; use serde_json::Value; diff --git a/src/meta-cli/src/cli/fdk_template.rs b/src/meta-cli/src/cli/fdk_template.rs index 7d363f114d..b7c8529111 100644 --- a/src/meta-cli/src/cli/fdk_template.rs +++ b/src/meta-cli/src/cli/fdk_template.rs @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + use async_trait::async_trait; use clap::{Parser, ValueEnum}; diff --git a/src/meta-cli/src/utils/shell_words.rs b/src/meta-cli/src/utils/shell_words.rs index 5c00018f2e..4e2df60909 100644 --- a/src/meta-cli/src/utils/shell_words.rs +++ b/src/meta-cli/src/utils/shell_words.rs @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + // no-auto-license-header /* diff --git a/src/meta-cli/tests/graphs/nested/graph0.py b/src/meta-cli/tests/graphs/nested/graph0.py index e69de29bb2..8e55187b7a 100644 --- a/src/meta-cli/tests/graphs/nested/graph0.py +++ b/src/meta-cli/tests/graphs/nested/graph0.py @@ -0,0 +1,2 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 diff --git a/src/meta-lsp/ts-language-server/src/analysis/diagnostics/context.ts b/src/meta-lsp/ts-language-server/src/analysis/diagnostics/context.ts index 71322451ee..ad90f9619e 100644 --- a/src/meta-lsp/ts-language-server/src/analysis/diagnostics/context.ts +++ b/src/meta-lsp/ts-language-server/src/analysis/diagnostics/context.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { Diagnostic, DiagnosticSeverity } from "vscode-languageserver-types"; import { ScopeManager } from "../typescript-semantic/scope.ts"; import { diff --git a/src/meta-lsp/ts-language-server/src/analysis/exposed_function.ts b/src/meta-lsp/ts-language-server/src/analysis/exposed_function.ts index dc82d9e0c2..712996a101 100644 --- a/src/meta-lsp/ts-language-server/src/analysis/exposed_function.ts +++ b/src/meta-lsp/ts-language-server/src/analysis/exposed_function.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { Parser } from "../parser.ts"; import { ModuleDiagnosticsContext } from "./diagnostics/context.ts"; import { InputType, Runtime } from "./runtimes/mod.ts"; diff --git a/src/meta-lsp/ts-language-server/src/analysis/runtimes/mod.ts b/src/meta-lsp/ts-language-server/src/analysis/runtimes/mod.ts index bbaead4b52..f382675346 100644 --- a/src/meta-lsp/ts-language-server/src/analysis/runtimes/mod.ts +++ b/src/meta-lsp/ts-language-server/src/analysis/runtimes/mod.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { Parser } from "../../parser.ts"; import { ModuleDiagnosticsContext } from "../diagnostics/context.ts"; import { TgType } from "../typescript-semantic/semantic-node.ts"; diff --git a/src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/scope.ts b/src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/scope.ts index 6f0d87bf4c..490e403769 100644 --- a/src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/scope.ts +++ b/src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/scope.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { Parser, queryMatches } from "../../parser.ts"; import { ModuleDiagnosticsContext } from "../diagnostics/context.ts"; diff --git a/src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/semantic-node.ts b/src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/semantic-node.ts index 7c04a12718..e563519dea 100644 --- a/src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/semantic-node.ts +++ b/src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/semantic-node.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { Parser } from "../../parser.ts"; import { ModuleDiagnosticsContext } from "../diagnostics/context.ts"; import { asMethodCall } from "./utils/mod.ts"; diff --git a/src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/symbols.ts b/src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/symbols.ts index df8685d4a1..f810e8065a 100644 --- a/src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/symbols.ts +++ b/src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/symbols.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { ScopeManager } from "./scope.ts"; import { SemanticNode } from "./semantic-node.ts"; diff --git a/src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/utils/mod.ts b/src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/utils/mod.ts index 387d64c9f0..c6f23ba7cd 100644 --- a/src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/utils/mod.ts +++ b/src/meta-lsp/ts-language-server/src/analysis/typescript-semantic/utils/mod.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { Parser } from "../../../parser.ts"; export type MethodCall = { diff --git a/src/meta-lsp/ts-language-server/src/lsp_client.ts b/src/meta-lsp/ts-language-server/src/lsp_client.ts index c9e7848ef6..c7518160e6 100644 --- a/src/meta-lsp/ts-language-server/src/lsp_client.ts +++ b/src/meta-lsp/ts-language-server/src/lsp_client.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import child_process from "node:child_process"; import { JSONRPCEndpoint, LspClient } from "ts-lsp-client"; diff --git a/src/meta-lsp/ts-language-server/src/parser.ts b/src/meta-lsp/ts-language-server/src/parser.ts index 8fdc918c46..7de6247d5f 100644 --- a/src/meta-lsp/ts-language-server/src/parser.ts +++ b/src/meta-lsp/ts-language-server/src/parser.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import Parser = require("tree-sitter"); import { typescript as TypeScript } from "tree-sitter-typescript"; import { diff --git a/src/meta-lsp/ts-language-server/src/server.ts b/src/meta-lsp/ts-language-server/src/server.ts index d05c00b2ae..7a379f1bd6 100644 --- a/src/meta-lsp/ts-language-server/src/server.ts +++ b/src/meta-lsp/ts-language-server/src/server.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { LspServer } from "./server/index.ts"; const server = new LspServer(["deno", "lsp"]); diff --git a/src/meta-lsp/ts-language-server/src/server/documents.ts b/src/meta-lsp/ts-language-server/src/server/documents.ts index 40b2582844..11a0534c84 100644 --- a/src/meta-lsp/ts-language-server/src/server/documents.ts +++ b/src/meta-lsp/ts-language-server/src/server/documents.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { Connection, TextDocuments } from "vscode-languageserver"; import { TextDocument } from "vscode-languageserver-textdocument"; import { ClientCapabilities } from "./mod.ts"; diff --git a/src/meta-lsp/ts-language-server/src/server/index.ts b/src/meta-lsp/ts-language-server/src/server/index.ts index 93166a06ca..e71540edd6 100644 --- a/src/meta-lsp/ts-language-server/src/server/index.ts +++ b/src/meta-lsp/ts-language-server/src/server/index.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { LspClient } from "ts-lsp-client"; import { createLspClient } from "../lsp_client.ts"; import { diff --git a/src/meta-lsp/ts-language-server/src/types.ts b/src/meta-lsp/ts-language-server/src/types.ts index 4dfd84a17e..bbfd219d3d 100644 --- a/src/meta-lsp/ts-language-server/src/types.ts +++ b/src/meta-lsp/ts-language-server/src/types.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { Parser } from "../parser.ts"; export type TypegraphDefinition = { diff --git a/src/meta-lsp/ts-language-server/tests/expose_analysis.test.ts b/src/meta-lsp/ts-language-server/tests/expose_analysis.test.ts index d9660c561e..0e312c33e4 100644 --- a/src/meta-lsp/ts-language-server/tests/expose_analysis.test.ts +++ b/src/meta-lsp/ts-language-server/tests/expose_analysis.test.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { typescript } from "tree-sitter-typescript"; import { findTypegraphDefinitions, diff --git a/src/meta-lsp/ts-language-server/tests/typegraphs/deno_types.ts b/src/meta-lsp/ts-language-server/tests/typegraphs/deno_types.ts index b2ae684dc0..1e36f95d1a 100644 --- a/src/meta-lsp/ts-language-server/tests/typegraphs/deno_types.ts +++ b/src/meta-lsp/ts-language-server/tests/typegraphs/deno_types.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + // TODO use deployed version of metatype in the import map import { Policy, t, typegraph } from "npm:@typegraph/sdk@0.2.4"; import { PythonRuntime } from "npm:@typegraph/sdk@0.2.4/runtimes/python"; diff --git a/src/meta-lsp/ts-language-server/tests/utils.ts b/src/meta-lsp/ts-language-server/tests/utils.ts index e69de29bb2..23d9e15ccf 100644 --- a/src/meta-lsp/ts-language-server/tests/utils.ts +++ b/src/meta-lsp/ts-language-server/tests/utils.ts @@ -0,0 +1,2 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 diff --git a/src/meta-lsp/vscode-metatype-support/src/extension.ts b/src/meta-lsp/vscode-metatype-support/src/extension.ts index 2cf821b9ed..c0a373c0af 100644 --- a/src/meta-lsp/vscode-metatype-support/src/extension.ts +++ b/src/meta-lsp/vscode-metatype-support/src/extension.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { join } from "node:path"; import { ExtensionContext } from "vscode"; diff --git a/src/metagen/fixtures/tg.ts b/src/metagen/fixtures/tg.ts index 12fbe189ba..e0e4dae44e 100644 --- a/src/metagen/fixtures/tg.ts +++ b/src/metagen/fixtures/tg.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { Policy, t, typegraph } from "@typegraph/sdk/index.ts"; import { WasmRuntime } from "@typegraph/sdk/runtimes/wasm.ts"; diff --git a/src/metagen/src/client_py/static/client.py b/src/metagen/src/client_py/static/client.py index d943e26f9f..204bfc41a1 100644 --- a/src/metagen/src/client_py/static/client.py +++ b/src/metagen/src/client_py/static/client.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + import typing import dataclasses as dc import json diff --git a/src/metagen/src/client_ts/static/mod.ts b/src/metagen/src/client_ts/static/mod.ts index 3c7ba074fa..3a075fb461 100644 --- a/src/metagen/src/client_ts/static/mod.ts +++ b/src/metagen/src/client_ts/static/mod.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + function _selectionToNodeSet( selection: Selection, metas: [string, () => NodeMeta][], diff --git a/src/metagen/src/fdk_substantial/mod.rs b/src/metagen/src/fdk_substantial/mod.rs index 494d76ee87..26f80816ea 100644 --- a/src/metagen/src/fdk_substantial/mod.rs +++ b/src/metagen/src/fdk_substantial/mod.rs @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + // TODO: keyword filtering use crate::interlude::*; diff --git a/src/metagen/src/fdk_substantial/static/substantial.py b/src/metagen/src/fdk_substantial/static/substantial.py index 621b0bdb4d..a8c98cf860 100644 --- a/src/metagen/src/fdk_substantial/static/substantial.py +++ b/src/metagen/src/fdk_substantial/static/substantial.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from datetime import timedelta from typing import Any, Callable, Optional from types import RetryStrategy diff --git a/src/metagen/src/fdk_substantial/static/types.py b/src/metagen/src/fdk_substantial/static/types.py index e10d852ca0..af87fe6058 100644 --- a/src/metagen/src/fdk_substantial/static/types.py +++ b/src/metagen/src/fdk_substantial/static/types.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from dataclasses import dataclass from typing import Union diff --git a/src/metagen/src/fdk_substantial/static/workflow.py b/src/metagen/src/fdk_substantial/static/workflow.py index 285844fa3c..377591f45a 100644 --- a/src/metagen/src/fdk_substantial/static/workflow.py +++ b/src/metagen/src/fdk_substantial/static/workflow.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from substantial import workflow, Context # noqa from substantial.types import RetryStrategy # noqa diff --git a/src/metagen/src/fdk_typescript/static/fdk.ts b/src/metagen/src/fdk_typescript/static/fdk.ts index ef276b7d43..28361dcebc 100644 --- a/src/metagen/src/fdk_typescript/static/fdk.ts +++ b/src/metagen/src/fdk_typescript/static/fdk.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + export type Ctx = { parent?: Record; /** diff --git a/src/pyrt_wit_wire/main.py b/src/pyrt_wit_wire/main.py index 28689e3fc9..91c941e7a4 100644 --- a/src/pyrt_wit_wire/main.py +++ b/src/pyrt_wit_wire/main.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + import importlib import importlib.abc import importlib.machinery diff --git a/src/substantial/src/backends/fs.rs b/src/substantial/src/backends/fs.rs index f154dd7fa5..373c9e76c7 100644 --- a/src/substantial/src/backends/fs.rs +++ b/src/substantial/src/backends/fs.rs @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + use super::key_value::{Item, KeyValueBackend, KeyValueLike}; use anyhow::{Context, Result}; use chrono::{DateTime, Utc}; diff --git a/src/substantial/src/backends/key_value.rs b/src/substantial/src/backends/key_value.rs index be0d9a65c4..cd6cfce7ad 100644 --- a/src/substantial/src/backends/key_value.rs +++ b/src/substantial/src/backends/key_value.rs @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + use super::{Backend, BackendMetadataWriter, NextRun}; use crate::{ converters::{MetadataEvent, MetadataPayload}, diff --git a/src/substantial/src/backends/memory.rs b/src/substantial/src/backends/memory.rs index 40c2fa0912..0c23871968 100644 --- a/src/substantial/src/backends/memory.rs +++ b/src/substantial/src/backends/memory.rs @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + use super::key_value::{Item, KeyValueBackend, KeyValueLike}; use anyhow::Result; use chrono::{DateTime, Utc}; diff --git a/src/substantial/src/backends/mod.rs b/src/substantial/src/backends/mod.rs index f6541f64ff..6a4a8841f6 100644 --- a/src/substantial/src/backends/mod.rs +++ b/src/substantial/src/backends/mod.rs @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; diff --git a/src/substantial/src/backends/redis.rs b/src/substantial/src/backends/redis.rs index 72a4b5139e..cee8ff228e 100644 --- a/src/substantial/src/backends/redis.rs +++ b/src/substantial/src/backends/redis.rs @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + use std::sync::Mutex; use super::{Backend, BackendMetadataWriter, NextRun}; diff --git a/src/substantial/src/converters.rs b/src/substantial/src/converters.rs index 3c146ca090..ea346d1288 100644 --- a/src/substantial/src/converters.rs +++ b/src/substantial/src/converters.rs @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + use std::collections::HashMap; use anyhow::{bail, Context, Ok, Result}; diff --git a/src/substantial/src/lib.rs b/src/substantial/src/lib.rs index 89fe1cf78e..81b09d8a52 100644 --- a/src/substantial/src/lib.rs +++ b/src/substantial/src/lib.rs @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + pub mod backends; pub mod converters; pub mod protocol; diff --git a/src/substantial/tests/mod.rs b/src/substantial/tests/mod.rs index 26e5469297..e218f9a887 100644 --- a/src/substantial/tests/mod.rs +++ b/src/substantial/tests/mod.rs @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + #[cfg(test)] mod tests { use std::{collections::HashMap, fmt::Debug, path::PathBuf, thread::sleep, time::Duration}; diff --git a/src/typegate/src/runtimes/substantial/agent.ts b/src/typegate/src/runtimes/substantial/agent.ts index 185a33eb9b..4fe0b4b7eb 100644 --- a/src/typegate/src/runtimes/substantial/agent.ts +++ b/src/typegate/src/runtimes/substantial/agent.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { AddScheduleInput, Backend, diff --git a/src/typegraph/core/src/runtimes/prisma/type_generation/mod.rs b/src/typegraph/core/src/runtimes/prisma/type_generation/mod.rs index d273666cdc..5a2f26e9dc 100644 --- a/src/typegraph/core/src/runtimes/prisma/type_generation/mod.rs +++ b/src/typegraph/core/src/runtimes/prisma/type_generation/mod.rs @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + // Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. // // SPDX-License-Identifier: MPL-2.0 diff --git a/src/typegraph/core/src/types/type_ref.rs b/src/typegraph/core/src/types/type_ref.rs index aa4a0b09ac..57cd33b591 100644 --- a/src/typegraph/core/src/types/type_ref.rs +++ b/src/typegraph/core/src/types/type_ref.rs @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + use std::hash::Hash; use std::rc::Rc; diff --git a/src/typegraph/core/src/types/type_ref/as_id.rs b/src/typegraph/core/src/types/type_ref/as_id.rs index c5d2160eae..8b2c578b37 100644 --- a/src/typegraph/core/src/types/type_ref/as_id.rs +++ b/src/typegraph/core/src/types/type_ref/as_id.rs @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + use serde::{Deserialize, Serialize}; use super::{ExtendedTypeDef, FindAttribute as _, RefAttr, TypeRef}; diff --git a/src/typegraph/core/src/types/type_ref/injection.rs b/src/typegraph/core/src/types/type_ref/injection.rs index 9ae2846057..7296cc758b 100644 --- a/src/typegraph/core/src/types/type_ref/injection.rs +++ b/src/typegraph/core/src/types/type_ref/injection.rs @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + use super::{RefAttr, TypeRef}; use crate::types::Type; use crate::wit::utils::ReduceEntry; diff --git a/src/typegraph/core/src/types/type_ref/policy.rs b/src/typegraph/core/src/types/type_ref/policy.rs index 18e965fc23..6995a8b331 100644 --- a/src/typegraph/core/src/types/type_ref/policy.rs +++ b/src/typegraph/core/src/types/type_ref/policy.rs @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + use crate::errors::{Result, TgError}; use crate::types::Type; use serde::{Deserialize, Serialize}; diff --git a/src/typegraph/core/src/types/type_ref/runtime_config.rs b/src/typegraph/core/src/types/type_ref/runtime_config.rs index fc26313706..bcd2438f13 100644 --- a/src/typegraph/core/src/types/type_ref/runtime_config.rs +++ b/src/typegraph/core/src/types/type_ref/runtime_config.rs @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + use super::{RefAttr, TypeRef}; use crate::errors::{Result, TgError}; use crate::types::Type; diff --git a/src/typegraph/core/src/types/type_ref/xdef.rs b/src/typegraph/core/src/types/type_ref/xdef.rs index 0cf7ce5960..613c5c9635 100644 --- a/src/typegraph/core/src/types/type_ref/xdef.rs +++ b/src/typegraph/core/src/types/type_ref/xdef.rs @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + use super::{FlatTypeRef, FlatTypeRefTarget, RefAttr, RefAttrs, TypeRef}; use crate::errors::Result; use crate::global_store::Store; diff --git a/src/typegraph/core/src/utils/postprocess/naming.rs b/src/typegraph/core/src/utils/postprocess/naming.rs index 708a38581a..ab636ae38a 100644 --- a/src/typegraph/core/src/utils/postprocess/naming.rs +++ b/src/typegraph/core/src/utils/postprocess/naming.rs @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + use std::{ collections::{HashMap, HashSet}, rc::Rc, diff --git a/tests/auth/auth.py b/tests/auth/auth.py index cf1c9c7f63..78ea96dd53 100644 --- a/tests/auth/auth.py +++ b/tests/auth/auth.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, Policy, t, Graph from typegraph.graph.params import Auth from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/dedup/dedup_test.ts b/tests/dedup/dedup_test.ts index c6985433f9..651d97b714 100644 --- a/tests/dedup/dedup_test.ts +++ b/tests/dedup/dedup_test.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { Meta } from "test-utils/mod.ts"; import { Typegraph } from "@metatype/typegate/typegraph/types.ts"; import { assert, assertEquals } from "@std/assert"; diff --git a/tests/docs/how-tos/prog_deploy/prog_deploy.py b/tests/docs/how-tos/prog_deploy/prog_deploy.py index 0e53ac081a..1638702dc7 100644 --- a/tests/docs/how-tos/prog_deploy/prog_deploy.py +++ b/tests/docs/how-tos/prog_deploy/prog_deploy.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + import os from os import path diff --git a/tests/docs/how-tos/prog_deploy/prog_remove.py b/tests/docs/how-tos/prog_deploy/prog_remove.py index c26f27f8e9..5e8acbceea 100644 --- a/tests/docs/how-tos/prog_deploy/prog_remove.py +++ b/tests/docs/how-tos/prog_deploy/prog_remove.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + # .. from typegraph.graph.tg_deploy import ( TypegateConnectionOptions, diff --git a/tests/e2e/cli/artifacts/ops.ts b/tests/e2e/cli/artifacts/ops.ts index cbd08ebe39..dc0fea8ce4 100644 --- a/tests/e2e/cli/artifacts/ops.ts +++ b/tests/e2e/cli/artifacts/ops.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + export function add({ lhs, rhs }: { lhs: number; rhs: number }) { return lhs + rhs; } diff --git a/tests/e2e/cli/templates/migration.py b/tests/e2e/cli/templates/migration.py index dbabc8ba0b..905c917caa 100644 --- a/tests/e2e/cli/templates/migration.py +++ b/tests/e2e/cli/templates/migration.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, t, Graph, Policy from typegraph.providers import PrismaRuntime diff --git a/tests/e2e/nextjs/apollo/app/layout.tsx b/tests/e2e/nextjs/apollo/app/layout.tsx index 5ff842ef07..53574ea2cf 100644 --- a/tests/e2e/nextjs/apollo/app/layout.tsx +++ b/tests/e2e/nextjs/apollo/app/layout.tsx @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + export const metadata = { title: "Next.js", description: "Generated by Next.js", diff --git a/tests/e2e/nextjs/apollo/app/page.tsx b/tests/e2e/nextjs/apollo/app/page.tsx index ad61ffa67c..a631ae64fb 100644 --- a/tests/e2e/nextjs/apollo/app/page.tsx +++ b/tests/e2e/nextjs/apollo/app/page.tsx @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + export default function Home() { return (
diff --git a/tests/e2e/nextjs/typegraph/apollo.py b/tests/e2e/nextjs/typegraph/apollo.py index fcf770f934..e862eec119 100644 --- a/tests/e2e/nextjs/typegraph/apollo.py +++ b/tests/e2e/nextjs/typegraph/apollo.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import Graph, Policy, t, typegraph from typegraph.graph.params import Cors from typegraph.providers.aws import S3Runtime diff --git a/tests/e2e/typegraph/typegraphs/python/multiple_runtimes.py b/tests/e2e/typegraph/typegraphs/python/multiple_runtimes.py index a89cb68896..4d676167fe 100644 --- a/tests/e2e/typegraph/typegraphs/python/multiple_runtimes.py +++ b/tests/e2e/typegraph/typegraphs/python/multiple_runtimes.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import Graph, t, typegraph from typegraph.policy import Policy from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/e2e/typegraph/validator.py b/tests/e2e/typegraph/validator.py index 41ad8293c3..8c3cbf7e45 100644 --- a/tests/e2e/typegraph/validator.py +++ b/tests/e2e/typegraph/validator.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, t, Graph from typegraph.runtimes import DenoRuntime diff --git a/tests/graphql/graphql.py b/tests/graphql/graphql.py index 3a66f54ac8..1721419a78 100644 --- a/tests/graphql/graphql.py +++ b/tests/graphql/graphql.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, effects, Policy, t, Graph from typegraph.runtimes.graphql import GraphQLRuntime diff --git a/tests/importers/gql_original.py b/tests/importers/gql_original.py index 796662501f..ba8204a9e6 100644 --- a/tests/importers/gql_original.py +++ b/tests/importers/gql_original.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + import json from pathlib import Path diff --git a/tests/importers/introspection.py b/tests/importers/introspection.py index ffa5fd3e67..88c483c76c 100644 --- a/tests/importers/introspection.py +++ b/tests/importers/introspection.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from pathlib import Path import httpx diff --git a/tests/importers/openapi_original.py b/tests/importers/openapi_original.py index e18fab12e2..88bbfbfe9c 100644 --- a/tests/importers/openapi_original.py +++ b/tests/importers/openapi_original.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + import json from pathlib import Path diff --git a/tests/importers/openapi_schema.py b/tests/importers/openapi_schema.py index e9a93d533d..cf14f6ff11 100644 --- a/tests/importers/openapi_schema.py +++ b/tests/importers/openapi_schema.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from pathlib import Path import httpx diff --git a/tests/injection/injection.py b/tests/injection/injection.py index 67d28c8ce2..a01c3b7b58 100644 --- a/tests/injection/injection.py +++ b/tests/injection/injection.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, effects, Policy, t, Graph from typegraph.providers.prisma import PrismaRuntime from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/injection/nested_context.py b/tests/injection/nested_context.py index e25c9e0ccb..5663dc34dd 100644 --- a/tests/injection/nested_context.py +++ b/tests/injection/nested_context.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, Policy, t, Graph from typegraph.runtimes import DenoRuntime diff --git a/tests/injection/random_injection.py b/tests/injection/random_injection.py index dc0d0fc1dc..10de670d56 100644 --- a/tests/injection/random_injection.py +++ b/tests/injection/random_injection.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.policy import Policy from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/internal/internal.py b/tests/internal/internal.py index 63ac78dc03..cc2c66aa14 100644 --- a/tests/internal/internal.py +++ b/tests/internal/internal.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/internal/py/logic_types.py b/tests/internal/py/logic_types.py index 125ceaa52d..1946de506e 100644 --- a/tests/internal/py/logic_types.py +++ b/tests/internal/py/logic_types.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from types import NoneType from typing import Callable, List, Union, get_origin, ForwardRef, Any from dataclasses import dataclass, asdict, fields diff --git a/tests/introspection/union_either.py b/tests/introspection/union_either.py index 3db6e4d495..52855df50f 100644 --- a/tests/introspection/union_either.py +++ b/tests/introspection/union_either.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, Policy, t, Graph from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/metagen/typegraphs/identities.py b/tests/metagen/typegraphs/identities.py index 6c57c14b98..eb8cef8c1d 100644 --- a/tests/metagen/typegraphs/identities.py +++ b/tests/metagen/typegraphs/identities.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, Policy, t, Graph from typegraph.runtimes.python import PythonRuntime from typegraph.runtimes.wasm import WasmRuntime diff --git a/tests/metagen/typegraphs/identities/py/handlers.py b/tests/metagen/typegraphs/identities/py/handlers.py index 02375b1473..d00f8a9963 100644 --- a/tests/metagen/typegraphs/identities/py/handlers.py +++ b/tests/metagen/typegraphs/identities/py/handlers.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from .handlers_types import ( Composites, typed_cycles, diff --git a/tests/metagen/typegraphs/identities/py/handlers_types.py b/tests/metagen/typegraphs/identities/py/handlers_types.py index cdf0871dd3..23ecb7c20e 100644 --- a/tests/metagen/typegraphs/identities/py/handlers_types.py +++ b/tests/metagen/typegraphs/identities/py/handlers_types.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from types import NoneType from typing import Callable, List, Union, get_origin, ForwardRef, Any from dataclasses import dataclass, asdict, fields diff --git a/tests/metagen/typegraphs/identities/ts/fdk.ts b/tests/metagen/typegraphs/identities/ts/fdk.ts index edcee66bf3..b3926d9dfa 100644 --- a/tests/metagen/typegraphs/identities/ts/fdk.ts +++ b/tests/metagen/typegraphs/identities/ts/fdk.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + // This file was @generated by metagen and is intended // to be generated again on subsequent metagen runs. diff --git a/tests/metagen/typegraphs/metagen.py b/tests/metagen/typegraphs/metagen.py index 889734cecc..758d93d0ae 100644 --- a/tests/metagen/typegraphs/metagen.py +++ b/tests/metagen/typegraphs/metagen.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from dataclasses import asdict from os import getenv from typegraph import typegraph, Policy, t, Graph diff --git a/tests/metagen/typegraphs/python.py b/tests/metagen/typegraphs/python.py index 0461795936..e2f89bfd2c 100644 --- a/tests/metagen/typegraphs/python.py +++ b/tests/metagen/typegraphs/python.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, Policy, t, Graph from typegraph.runtimes.python import PythonRuntime diff --git a/tests/metagen/typegraphs/sample/py/client.py b/tests/metagen/typegraphs/sample/py/client.py index 935d695e9a..0d84e1e127 100644 --- a/tests/metagen/typegraphs/sample/py/client.py +++ b/tests/metagen/typegraphs/sample/py/client.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + # This file was @generated by metagen and is intended # to be generated again on subsequent metagen runs. diff --git a/tests/metagen/typegraphs/sample/py/main.py b/tests/metagen/typegraphs/sample/py/main.py index e44d491f0b..2f9ed1d14b 100644 --- a/tests/metagen/typegraphs/sample/py/main.py +++ b/tests/metagen/typegraphs/sample/py/main.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from client import ( QueryGraph, PostSelections, diff --git a/tests/metagen/typegraphs/sample/ts/client.ts b/tests/metagen/typegraphs/sample/ts/client.ts index 4bbf3fc00f..34de517d33 100644 --- a/tests/metagen/typegraphs/sample/ts/client.ts +++ b/tests/metagen/typegraphs/sample/ts/client.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + // This file was @generated by metagen and is intended // to be generated again on subsequent metagen runs. diff --git a/tests/multi_typegraph/multi_typegraph.py b/tests/multi_typegraph/multi_typegraph.py index 43a0331a32..bdafd8645f 100644 --- a/tests/multi_typegraph/multi_typegraph.py +++ b/tests/multi_typegraph/multi_typegraph.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/nesting/nesting.py b/tests/nesting/nesting.py index e0c15a0047..9fcb3566f1 100644 --- a/tests/nesting/nesting.py +++ b/tests/nesting/nesting.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, Policy, t, Graph from typegraph.runtimes.http import HttpRuntime diff --git a/tests/params/apply.py b/tests/params/apply.py index f47e11f1d7..ad71ae1d6b 100644 --- a/tests/params/apply.py +++ b/tests/params/apply.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import Graph, Policy, t, typegraph from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/params/apply_nested_context.py b/tests/params/apply_nested_context.py index 1335bdbac9..5ffdc69908 100644 --- a/tests/params/apply_nested_context.py +++ b/tests/params/apply_nested_context.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, t, Graph, Policy from typegraph.runtimes import DenoRuntime diff --git a/tests/params/prisma_apply.py b/tests/params/prisma_apply.py index 78afba91b7..fc6b4c5304 100644 --- a/tests/params/prisma_apply.py +++ b/tests/params/prisma_apply.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import Graph, Policy, t, typegraph from typegraph.providers import PrismaRuntime diff --git a/tests/planner/planner.py b/tests/planner/planner.py index 88d75071f0..11911fe5aa 100644 --- a/tests/planner/planner.py +++ b/tests/planner/planner.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, t, Graph, Policy from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/policies/effects_py.py b/tests/policies/effects_py.py index a1edcd643e..0bbbd06898 100644 --- a/tests/policies/effects_py.py +++ b/tests/policies/effects_py.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import Graph, Policy, effects, t, typegraph from typegraph.graph.params import Auth from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/policies/policies.py b/tests/policies/policies.py index 8363dbe999..78e308364f 100644 --- a/tests/policies/policies.py +++ b/tests/policies/policies.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, t, Graph, Policy from typegraph.graph.params import Auth from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/policies/policies_jwt.py b/tests/policies/policies_jwt.py index 8fb1199b71..6410178d49 100644 --- a/tests/policies/policies_jwt.py +++ b/tests/policies/policies_jwt.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + import re from typegraph import typegraph, Policy, t, Graph diff --git a/tests/policies/policies_jwt_format.py b/tests/policies/policies_jwt_format.py index 28d6ae61b7..6ae596adb9 100644 --- a/tests/policies/policies_jwt_format.py +++ b/tests/policies/policies_jwt_format.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, Policy, t, Graph from typegraph.graph.params import Auth from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/policies/policies_jwt_injection.py b/tests/policies/policies_jwt_injection.py index 427b5d9724..bc67e5ed53 100644 --- a/tests/policies/policies_jwt_injection.py +++ b/tests/policies/policies_jwt_injection.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, Policy, t, Graph from typegraph.graph.params import Auth from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/query_parsers/graphql_namespaces.py b/tests/query_parsers/graphql_namespaces.py index 6be69ae61c..b70e47cdf0 100644 --- a/tests/query_parsers/graphql_namespaces.py +++ b/tests/query_parsers/graphql_namespaces.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, effects, Policy, t, Graph from typegraph.runtimes.graphql import GraphQLRuntime diff --git a/tests/regression/invalid_ref_error_message/invalid_ref.py b/tests/regression/invalid_ref_error_message/invalid_ref.py index 452db23bdf..228f0afcad 100644 --- a/tests/regression/invalid_ref_error_message/invalid_ref.py +++ b/tests/regression/invalid_ref_error_message/invalid_ref.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, Graph, Policy, t from typegraph.runtimes import DenoRuntime diff --git a/tests/rest/rest_simple.py b/tests/rest/rest_simple.py index 6496e67874..e2678f2f26 100644 --- a/tests/rest/rest_simple.py +++ b/tests/rest/rest_simple.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import Graph, Policy, t, typegraph from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/runtimes/deno/deno.py b/tests/runtimes/deno/deno.py index 9d8370c1f0..c29562f9a9 100644 --- a/tests/runtimes/deno/deno.py +++ b/tests/runtimes/deno/deno.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/runtimes/deno/deno_dep.py b/tests/runtimes/deno/deno_dep.py index 00ccae2fb1..e30ba0d969 100644 --- a/tests/runtimes/deno/deno_dep.py +++ b/tests/runtimes/deno/deno_dep.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/runtimes/deno/deno_dir.py b/tests/runtimes/deno/deno_dir.py index f3ca1b0ad4..a177da89d7 100644 --- a/tests/runtimes/deno/deno_dir.py +++ b/tests/runtimes/deno/deno_dir.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/runtimes/deno/deno_duplicate_artifact.py b/tests/runtimes/deno/deno_duplicate_artifact.py index 8b094d0d38..24a7f78175 100644 --- a/tests/runtimes/deno/deno_duplicate_artifact.py +++ b/tests/runtimes/deno/deno_duplicate_artifact.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/runtimes/deno/deno_globs.py b/tests/runtimes/deno/deno_globs.py index f0ab6420d7..39737bd582 100644 --- a/tests/runtimes/deno/deno_globs.py +++ b/tests/runtimes/deno/deno_globs.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/runtimes/deno/deno_no_artifact.py b/tests/runtimes/deno/deno_no_artifact.py index 681d50fdb9..efdfa35d57 100644 --- a/tests/runtimes/deno/deno_no_artifact.py +++ b/tests/runtimes/deno/deno_no_artifact.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/runtimes/deno/deno_partial.py b/tests/runtimes/deno/deno_partial.py index c4441993f8..6d0283ab0c 100644 --- a/tests/runtimes/deno/deno_partial.py +++ b/tests/runtimes/deno/deno_partial.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/runtimes/deno/deno_reload.py b/tests/runtimes/deno/deno_reload.py index c126b45e67..f8a1327dc1 100644 --- a/tests/runtimes/deno/deno_reload.py +++ b/tests/runtimes/deno/deno_reload.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + import os from typegraph.graph.typegraph import Graph from typegraph.policy import Policy diff --git a/tests/runtimes/graphql/typegraphs/python/graphql.py b/tests/runtimes/graphql/typegraphs/python/graphql.py index 1c11184b86..e96270a604 100644 --- a/tests/runtimes/graphql/typegraphs/python/graphql.py +++ b/tests/runtimes/graphql/typegraphs/python/graphql.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.providers.prisma import PrismaRuntime from typegraph.runtimes.graphql import GraphQLRuntime diff --git a/tests/runtimes/http/http_content_type.py b/tests/runtimes/http/http_content_type.py index 9997a2d9f5..1141560c58 100644 --- a/tests/runtimes/http/http_content_type.py +++ b/tests/runtimes/http/http_content_type.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, Policy, t, Graph from typegraph.runtimes.http import HttpRuntime diff --git a/tests/runtimes/http/http_py.py b/tests/runtimes/http/http_py.py index 2f3b713469..778f7cebba 100644 --- a/tests/runtimes/http/http_py.py +++ b/tests/runtimes/http/http_py.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, Policy, t, Graph from typegraph.runtimes.http import HttpRuntime diff --git a/tests/runtimes/prisma/full_prisma_mapping.py b/tests/runtimes/prisma/full_prisma_mapping.py index 6ab88a46ba..08fc422517 100644 --- a/tests/runtimes/prisma/full_prisma_mapping.py +++ b/tests/runtimes/prisma/full_prisma_mapping.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, Policy, t, Graph from typegraph.gen.exports.runtimes import EffectUpdate from typegraph.providers.prisma import PrismaRuntime diff --git a/tests/runtimes/prisma/mixed_runtime.py b/tests/runtimes/prisma/mixed_runtime.py index 2e27d1772b..7ec6cd2baf 100644 --- a/tests/runtimes/prisma/mixed_runtime.py +++ b/tests/runtimes/prisma/mixed_runtime.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, t, Graph, Policy from typegraph.providers.prisma import PrismaRuntime from typegraph.runtimes.graphql import GraphQLRuntime diff --git a/tests/runtimes/prisma/multi_relations.py b/tests/runtimes/prisma/multi_relations.py index e06d8c933b..45b1182680 100644 --- a/tests/runtimes/prisma/multi_relations.py +++ b/tests/runtimes/prisma/multi_relations.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, Policy, t, Graph from typegraph.providers.prisma import PrismaRuntime diff --git a/tests/runtimes/prisma/multiple_runtimes.py b/tests/runtimes/prisma/multiple_runtimes.py index 2b9f8114a1..251b4662c5 100644 --- a/tests/runtimes/prisma/multiple_runtimes.py +++ b/tests/runtimes/prisma/multiple_runtimes.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import Graph, Policy, t, typegraph from typegraph.providers.prisma import PrismaRuntime diff --git a/tests/runtimes/prisma/normal_1_1.py b/tests/runtimes/prisma/normal_1_1.py index 7837f08ce3..987e45ea6a 100644 --- a/tests/runtimes/prisma/normal_1_1.py +++ b/tests/runtimes/prisma/normal_1_1.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import Graph, Policy, t, typegraph from typegraph.providers.prisma import PrismaRuntime diff --git a/tests/runtimes/prisma/optional_1_1.py b/tests/runtimes/prisma/optional_1_1.py index b5b0b1f589..d7d5074e10 100644 --- a/tests/runtimes/prisma/optional_1_1.py +++ b/tests/runtimes/prisma/optional_1_1.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import Graph, Policy, t, typegraph from typegraph.providers.prisma import PrismaRuntime diff --git a/tests/runtimes/prisma/optional_1_n.py b/tests/runtimes/prisma/optional_1_n.py index a580230c28..08f0581f79 100644 --- a/tests/runtimes/prisma/optional_1_n.py +++ b/tests/runtimes/prisma/optional_1_n.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import Graph, Policy, t, typegraph from typegraph.providers.prisma import PrismaRuntime diff --git a/tests/runtimes/prisma/prisma.py b/tests/runtimes/prisma/prisma.py index 7e7165dabe..ac5aba27bd 100644 --- a/tests/runtimes/prisma/prisma.py +++ b/tests/runtimes/prisma/prisma.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, Policy, t, Graph from typegraph.providers.prisma import PrismaRuntime from typegraph.effects import CREATE diff --git a/tests/runtimes/prisma/prisma_edgecases.py b/tests/runtimes/prisma/prisma_edgecases.py index 79964f5330..2086696b12 100644 --- a/tests/runtimes/prisma/prisma_edgecases.py +++ b/tests/runtimes/prisma/prisma_edgecases.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, Policy, t, Graph from typegraph.providers.prisma import PrismaRuntime diff --git a/tests/runtimes/prisma/schema_generation.py b/tests/runtimes/prisma/schema_generation.py index 16035e21fe..25c2c4a119 100644 --- a/tests/runtimes/prisma/schema_generation.py +++ b/tests/runtimes/prisma/schema_generation.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.effects import CREATE, UPDATE from typegraph.providers import PrismaRuntime from typegraph.runtimes import DenoRuntime diff --git a/tests/runtimes/python/py/hello.py b/tests/runtimes/python/py/hello.py index dc9b0d49b8..9c1b96c123 100644 --- a/tests/runtimes/python/py/hello.py +++ b/tests/runtimes/python/py/hello.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from .nested.dep import hello from typing import Dict diff --git a/tests/runtimes/python/py/nested/dep.py b/tests/runtimes/python/py/nested/dep.py index a8406242a8..6cfce6287a 100644 --- a/tests/runtimes/python/py/nested/dep.py +++ b/tests/runtimes/python/py/nested/dep.py @@ -1,2 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + + def hello(name: str): return f"Hello {name}" diff --git a/tests/runtimes/python/python.py b/tests/runtimes/python/python.py index cd3610a8ed..1e00272ac1 100644 --- a/tests/runtimes/python/python.py +++ b/tests/runtimes/python/python.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.python import PythonRuntime diff --git a/tests/runtimes/python/python_dir.py b/tests/runtimes/python/python_dir.py index bbb3e64f6f..184609dd2a 100644 --- a/tests/runtimes/python/python_dir.py +++ b/tests/runtimes/python/python_dir.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.python import PythonRuntime diff --git a/tests/runtimes/python/python_duplicate_artifact.py b/tests/runtimes/python/python_duplicate_artifact.py index 30ca0d82da..1b998c6b86 100644 --- a/tests/runtimes/python/python_duplicate_artifact.py +++ b/tests/runtimes/python/python_duplicate_artifact.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.python import PythonRuntime diff --git a/tests/runtimes/python/python_globs.py b/tests/runtimes/python/python_globs.py index 617d292546..b7d49c9368 100644 --- a/tests/runtimes/python/python_globs.py +++ b/tests/runtimes/python/python_globs.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.python import PythonRuntime diff --git a/tests/runtimes/python/python_no_artifact.py b/tests/runtimes/python/python_no_artifact.py index e9bd61bd9f..b6122af5b1 100644 --- a/tests/runtimes/python/python_no_artifact.py +++ b/tests/runtimes/python/python_no_artifact.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.python import PythonRuntime diff --git a/tests/runtimes/random/random_.py b/tests/runtimes/random/random_.py index 65443e5b3d..a99a3b4886 100644 --- a/tests/runtimes/random/random_.py +++ b/tests/runtimes/random/random_.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import t, typegraph from typegraph.graph.typegraph import Graph from typegraph.policy import Policy diff --git a/tests/runtimes/s3/s3.py b/tests/runtimes/s3/s3.py index dede2e75d8..a5443f3290 100644 --- a/tests/runtimes/s3/s3.py +++ b/tests/runtimes/s3/s3.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, Policy, t, Graph from typegraph.providers.aws import S3Runtime diff --git a/tests/runtimes/substantial/child_workflow.ts b/tests/runtimes/substantial/child_workflow.ts index 9e77ccc84e..161dc40e04 100644 --- a/tests/runtimes/substantial/child_workflow.ts +++ b/tests/runtimes/substantial/child_workflow.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { Context } from "./imports/common_types.ts"; function apply(pkg: string, oldVersion: string, newVersion: string) { diff --git a/tests/runtimes/substantial/common.ts b/tests/runtimes/substantial/common.ts index 6c2f833680..e1514b12f3 100644 --- a/tests/runtimes/substantial/common.ts +++ b/tests/runtimes/substantial/common.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { assertEquals, assertExists } from "@std/assert"; import { connect, parseURL } from "redis"; import { gql, Meta, sleep } from "../../utils/mod.ts"; diff --git a/tests/runtimes/substantial/imports/common_types.ts b/tests/runtimes/substantial/imports/common_types.ts index 95cde71752..3d7fe58dc7 100644 --- a/tests/runtimes/substantial/imports/common_types.ts +++ b/tests/runtimes/substantial/imports/common_types.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + // TODO: include this as part of the metagen generated code // TODO: merge these diff --git a/tests/runtimes/substantial/substantial.py b/tests/runtimes/substantial/substantial.py index 55c2b82a9c..6bc0936289 100644 --- a/tests/runtimes/substantial/substantial.py +++ b/tests/runtimes/substantial/substantial.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + import os from typegraph import typegraph, t, Graph from typegraph.policy import Policy diff --git a/tests/runtimes/substantial/substantial_child_workflow.py b/tests/runtimes/substantial/substantial_child_workflow.py index 560dae1491..e9a545aadd 100644 --- a/tests/runtimes/substantial/substantial_child_workflow.py +++ b/tests/runtimes/substantial/substantial_child_workflow.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + import os from typegraph import typegraph, t, Graph from typegraph.policy import Policy diff --git a/tests/runtimes/substantial/substantial_test.ts b/tests/runtimes/substantial/substantial_test.ts index f071401015..fce40e9ff3 100644 --- a/tests/runtimes/substantial/substantial_test.ts +++ b/tests/runtimes/substantial/substantial_test.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { basicTestTemplate } from "./common.ts"; basicTestTemplate("memory", { diff --git a/tests/runtimes/substantial/workflow.ts b/tests/runtimes/substantial/workflow.ts index 59d7a70737..9722260f21 100644 --- a/tests/runtimes/substantial/workflow.ts +++ b/tests/runtimes/substantial/workflow.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { Context, queryThatTakesAWhile, diff --git a/tests/runtimes/temporal/temporal.py b/tests/runtimes/temporal/temporal.py index 3192aa6395..0c35ffb86d 100644 --- a/tests/runtimes/temporal/temporal.py +++ b/tests/runtimes/temporal/temporal.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import t, typegraph, Policy, Graph from typegraph.providers.temporal import TemporalRuntime diff --git a/tests/runtimes/wasm_reflected/wasm_duplicate.py b/tests/runtimes/wasm_reflected/wasm_duplicate.py index 8f53718569..9ec1e82bb5 100644 --- a/tests/runtimes/wasm_reflected/wasm_duplicate.py +++ b/tests/runtimes/wasm_reflected/wasm_duplicate.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.wasm import WasmRuntime diff --git a/tests/runtimes/wasm_reflected/wasm_reflected.py b/tests/runtimes/wasm_reflected/wasm_reflected.py index f013f31210..7d268c2ea4 100644 --- a/tests/runtimes/wasm_reflected/wasm_reflected.py +++ b/tests/runtimes/wasm_reflected/wasm_reflected.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.wasm import WasmRuntime diff --git a/tests/runtimes/wasm_wire/wasm_wire.py b/tests/runtimes/wasm_wire/wasm_wire.py index c73e19b42f..f5b39d34e7 100644 --- a/tests/runtimes/wasm_wire/wasm_wire.py +++ b/tests/runtimes/wasm_wire/wasm_wire.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.wasm import WasmRuntime diff --git a/tests/schema_validation/circular.py b/tests/schema_validation/circular.py index eaa2401d79..72dba1405e 100644 --- a/tests/schema_validation/circular.py +++ b/tests/schema_validation/circular.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/schema_validation/type_comparison.py b/tests/schema_validation/type_comparison.py index 6724fc666d..8852be1656 100644 --- a/tests/schema_validation/type_comparison.py +++ b/tests/schema_validation/type_comparison.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import t, typegraph, Graph, Policy from typegraph.runtimes import DenoRuntime diff --git a/tests/schema_validation/type_comparison_test.ts b/tests/schema_validation/type_comparison_test.ts index 7ca64b02ce..43941fb967 100644 --- a/tests/schema_validation/type_comparison_test.ts +++ b/tests/schema_validation/type_comparison_test.ts @@ -1,3 +1,6 @@ +// Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +// SPDX-License-Identifier: MPL-2.0 + import { Meta } from "../utils/mod.ts"; Meta.test("type comparison test", async (t) => { diff --git a/tests/simple/class_syntax.py b/tests/simple/class_syntax.py index bd1cf673ab..ff206ad402 100644 --- a/tests/simple/class_syntax.py +++ b/tests/simple/class_syntax.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, Policy, t, Graph from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/simple/error_message.py b/tests/simple/error_message.py index 5500e4238a..3b75322e54 100644 --- a/tests/simple/error_message.py +++ b/tests/simple/error_message.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, effects, Policy, t, Graph from typegraph.runtimes import DenoRuntime diff --git a/tests/simple/simple.py b/tests/simple/simple.py index a7b86fd1c0..ca0cd9a968 100644 --- a/tests/simple/simple.py +++ b/tests/simple/simple.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, Policy, t, Graph from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/type_nodes/array_of_optional.py b/tests/type_nodes/array_of_optional.py index 6873243bdd..6f427206c9 100644 --- a/tests/type_nodes/array_of_optional.py +++ b/tests/type_nodes/array_of_optional.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import Policy, t, typegraph, Graph from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/type_nodes/either_node.py b/tests/type_nodes/either_node.py index e442af7a3b..989a84d398 100644 --- a/tests/type_nodes/either_node.py +++ b/tests/type_nodes/either_node.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/type_nodes/union_node.py b/tests/type_nodes/union_node.py index 87c75404fb..ec02fab932 100644 --- a/tests/type_nodes/union_node.py +++ b/tests/type_nodes/union_node.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/type_nodes/union_node_attr.py b/tests/type_nodes/union_node_attr.py index c77b8d3c16..056dceb033 100644 --- a/tests/type_nodes/union_node_attr.py +++ b/tests/type_nodes/union_node_attr.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/type_nodes/union_node_quantifier.py b/tests/type_nodes/union_node_quantifier.py index 46e92cdc2d..c3befb5f74 100644 --- a/tests/type_nodes/union_node_quantifier.py +++ b/tests/type_nodes/union_node_quantifier.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph.graph.typegraph import Graph from typegraph.policy import Policy from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/typecheck/reduce_py.py b/tests/typecheck/reduce_py.py index 9829a35cb0..dc4e2ea88f 100644 --- a/tests/typecheck/reduce_py.py +++ b/tests/typecheck/reduce_py.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import Graph, Policy, t, typegraph from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/typecheck/type_alias.py b/tests/typecheck/type_alias.py index 3f7c068761..913c6dd540 100644 --- a/tests/typecheck/type_alias.py +++ b/tests/typecheck/type_alias.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, Policy, t, Graph from typegraph.runtimes import RandomRuntime from typegraph.providers import PrismaRuntime diff --git a/tests/typename/typename.py b/tests/typename/typename.py index a867717f17..6ca4cbcfd9 100644 --- a/tests/typename/typename.py +++ b/tests/typename/typename.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import Graph, Policy, effects, t, typegraph from typegraph.providers.prisma import PrismaRuntime from typegraph.runtimes.deno import DenoRuntime diff --git a/tests/utils/tg_deploy_script.py b/tests/utils/tg_deploy_script.py index ebaa20c3af..ac9d036680 100644 --- a/tests/utils/tg_deploy_script.py +++ b/tests/utils/tg_deploy_script.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + import importlib.util as import_util import json import os diff --git a/tests/vars/vars.py b/tests/vars/vars.py index 702b8cad91..fb00295bda 100644 --- a/tests/vars/vars.py +++ b/tests/vars/vars.py @@ -1,3 +1,6 @@ +# Copyright Metatype OÜ, licensed under the Mozilla Public License Version 2.0. +# SPDX-License-Identifier: MPL-2.0 + from typegraph import typegraph, Policy, t, Graph from typegraph.runtimes.deno import DenoRuntime