diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 55f10d27d..757112543 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -76,3 +76,47 @@ repos: ^import requirements.* pass_filenames: true exclude: ^src/snowflake/cli/plugins/snowpark/models.py$ + - repo: https://github.com/Lucas-C/pre-commit-hooks + rev: v1.5.5 + hooks: + - id: insert-license + name: Add license for all SQL files + files: \.sql$ + exclude: | + (?x) + ^\.github/ + args: + - --comment-style + - "/*||*/" + - --license-filepath + - scripts/LICENSE.txt + - --fuzzy-match-generates-todo + - id: insert-license + name: Add license for all toml files + files: \.toml$ + args: + - --comment-style + - "|#|" + - --license-filepath + - scripts/LICENSE.txt + - --fuzzy-match-generates-todo + - id: insert-license + name: Add license for all Python files + exclude: ^\.github/.*$ + files: \.py$|\.pyi$ + args: + - --comment-style + - "|#|" + - --license-filepath + - scripts/LICENSE.txt + - --fuzzy-match-generates-todo + - id: insert-license + name: Add license for all Markdown files + exclude: ^\.github/.*$ + files: \.md$ + args: + - --comment-style + - "" + - --license-filepath + - scripts/LICENSE.txt + - --fuzzy-match-generates-todo diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6d71572db..ad28c0c0a 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,3 +1,19 @@ + + # Contributing to Snowflake CLI There are two ways to contribute code to the repository: directly or by use of forks. For best practices for the second approach, refer to the section on forks below. Right now, there is limited access to contributing to the repository directly, and hence using forks is the recommended approach. diff --git a/README.md b/README.md index 8b8f55dfe..65fe74485 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,19 @@ + + [![Code quality checks](https://github.com/snowflakedb/snowflake-cli/actions/workflows/lint.yaml/badge.svg)](https://github.com/snowflakedb/snowflake-cli/actions/workflows/lint.yaml) [![Integration testing](https://github.com/snowflakedb/snowflake-cli/actions/workflows/integration_test.yaml/badge.svg)](https://github.com/snowflakedb/snowflake-cli/actions/workflows/integration_test.yaml) [![CLI Action testing](https://github.com/snowflakedb/snowflake-cli/actions/workflows/test_cli_action.yaml/badge.svg?branch=main)](https://github.com/snowflakedb/snowflake-cli/actions/workflows/test_cli_action.yaml) diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index 89a6616b5..1583b10ad 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,3 +1,19 @@ + + # Unreleased version ## Backward incompatibility diff --git a/SECURITY.md b/SECURITY.md index 27e7e1b2f..77ca7ad6b 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -1,3 +1,19 @@ + + # Security Policy diff --git a/conftest.py b/conftest.py index dec6f243c..95aaaa75e 100644 --- a/conftest.py +++ b/conftest.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from unittest import mock import pytest diff --git a/performance_history_analysis.py b/performance_history_analysis.py index 189a4bdea..72cadb742 100644 --- a/performance_history_analysis.py +++ b/performance_history_analysis.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import subprocess diff --git a/pyproject.toml b/pyproject.toml index 4bc5fdee2..a989f6349 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [build-system] requires = ["hatchling"] build-backend = "hatchling.build" diff --git a/requirements.txt/requirements.txt b/requirements.txt/requirements.txt new file mode 100644 index 000000000..e69de29bb diff --git a/requirements.txt/requirements.txt.part#tffcfdkgab b/requirements.txt/requirements.txt.part#tffcfdkgab new file mode 100644 index 000000000..e69de29bb diff --git a/scripts/LICENSE.txt b/scripts/LICENSE.txt new file mode 100644 index 000000000..8eb48d0f0 --- /dev/null +++ b/scripts/LICENSE.txt @@ -0,0 +1,13 @@ +Copyright (c) 2024 Snowflake Inc. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/scripts/main.py b/scripts/main.py index 630df7654..74aa5c852 100644 --- a/scripts/main.py +++ b/scripts/main.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from pathlib import Path from typer import Argument, Typer diff --git a/snyk/dependency-sync.py b/snyk/dependency-sync.py index 31e250bfb..a086b0847 100644 --- a/snyk/dependency-sync.py +++ b/snyk/dependency-sync.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from pathlib import Path import tomlkit diff --git a/src/__init__.py b/src/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/__about__.py b/src/snowflake/cli/__about__.py index 4ceb94d7a..c3922e54f 100644 --- a/src/snowflake/cli/__about__.py +++ b/src/snowflake/cli/__about__.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations VERSION = "2.5.0.dev0" diff --git a/src/snowflake/cli/__init__.py b/src/snowflake/cli/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/__init__.py +++ b/src/snowflake/cli/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/api/__init__.py b/src/snowflake/cli/api/__init__.py index c18c4bbbf..cf43487ba 100644 --- a/src/snowflake/cli/api/__init__.py +++ b/src/snowflake/cli/api/__init__.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import Optional diff --git a/src/snowflake/cli/api/cli_global_context.py b/src/snowflake/cli/api/cli_global_context.py index 82c6782ac..609ce3a15 100644 --- a/src/snowflake/cli/api/cli_global_context.py +++ b/src/snowflake/cli/api/cli_global_context.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import re diff --git a/src/snowflake/cli/api/commands/__init__.py b/src/snowflake/cli/api/commands/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/api/commands/__init__.py +++ b/src/snowflake/cli/api/commands/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/api/commands/alias.py b/src/snowflake/cli/api/commands/alias.py index 7e0595c66..501e3bb35 100644 --- a/src/snowflake/cli/api/commands/alias.py +++ b/src/snowflake/cli/api/commands/alias.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from copy import deepcopy diff --git a/src/snowflake/cli/api/commands/decorators.py b/src/snowflake/cli/api/commands/decorators.py index b50af3776..11f0be05a 100644 --- a/src/snowflake/cli/api/commands/decorators.py +++ b/src/snowflake/cli/api/commands/decorators.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import inspect diff --git a/src/snowflake/cli/api/commands/experimental_behaviour.py b/src/snowflake/cli/api/commands/experimental_behaviour.py index 187d03efc..afd54647a 100644 --- a/src/snowflake/cli/api/commands/experimental_behaviour.py +++ b/src/snowflake/cli/api/commands/experimental_behaviour.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.cli_global_context import cli_context diff --git a/src/snowflake/cli/api/commands/flags.py b/src/snowflake/cli/api/commands/flags.py index 909a28267..51a4f6026 100644 --- a/src/snowflake/cli/api/commands/flags.py +++ b/src/snowflake/cli/api/commands/flags.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import tempfile diff --git a/src/snowflake/cli/api/commands/project_initialisation.py b/src/snowflake/cli/api/commands/project_initialisation.py index 7a661ee1b..9141ba8a8 100644 --- a/src/snowflake/cli/api/commands/project_initialisation.py +++ b/src/snowflake/cli/api/commands/project_initialisation.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import Optional diff --git a/src/snowflake/cli/api/commands/snow_typer.py b/src/snowflake/cli/api/commands/snow_typer.py index 4f9b28fed..e700bdc7d 100644 --- a/src/snowflake/cli/api/commands/snow_typer.py +++ b/src/snowflake/cli/api/commands/snow_typer.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/src/snowflake/cli/api/config.py b/src/snowflake/cli/api/config.py index 35bbd0852..2a7757981 100644 --- a/src/snowflake/cli/api/config.py +++ b/src/snowflake/cli/api/config.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/src/snowflake/cli/api/console/__init__.py b/src/snowflake/cli/api/console/__init__.py index c5bc184fe..4911381a3 100644 --- a/src/snowflake/cli/api/console/__init__.py +++ b/src/snowflake/cli/api/console/__init__.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.console.console import cli_console __all__ = ("cli_console",) diff --git a/src/snowflake/cli/api/console/abc.py b/src/snowflake/cli/api/console/abc.py index 26deb67ab..50802f2b5 100644 --- a/src/snowflake/cli/api/console/abc.py +++ b/src/snowflake/cli/api/console/abc.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from abc import ABC, abstractmethod diff --git a/src/snowflake/cli/api/console/console.py b/src/snowflake/cli/api/console/console.py index c6311742b..f561acb9f 100644 --- a/src/snowflake/cli/api/console/console.py +++ b/src/snowflake/cli/api/console/console.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from contextlib import contextmanager diff --git a/src/snowflake/cli/api/console/enum.py b/src/snowflake/cli/api/console/enum.py index 451109926..dd9155510 100644 --- a/src/snowflake/cli/api/console/enum.py +++ b/src/snowflake/cli/api/console/enum.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from enum import Enum Output = Enum("Output", ("PHASE", "STEP", "INFO", "IMPORTANT")) diff --git a/src/snowflake/cli/api/constants.py b/src/snowflake/cli/api/constants.py index 79324f72e..8f26258fa 100644 --- a/src/snowflake/cli/api/constants.py +++ b/src/snowflake/cli/api/constants.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from dataclasses import dataclass diff --git a/src/snowflake/cli/api/exceptions.py b/src/snowflake/cli/api/exceptions.py index 071f449b4..4335eba0a 100644 --- a/src/snowflake/cli/api/exceptions.py +++ b/src/snowflake/cli/api/exceptions.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from pathlib import Path diff --git a/src/snowflake/cli/api/feature_flags.py b/src/snowflake/cli/api/feature_flags.py index fc525f66c..599703050 100644 --- a/src/snowflake/cli/api/feature_flags.py +++ b/src/snowflake/cli/api/feature_flags.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from enum import Enum, unique from typing import NamedTuple diff --git a/src/snowflake/cli/api/identifiers.py b/src/snowflake/cli/api/identifiers.py index 26948986a..8d878ab10 100644 --- a/src/snowflake/cli/api/identifiers.py +++ b/src/snowflake/cli/api/identifiers.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import re diff --git a/src/snowflake/cli/api/output/__init__.py b/src/snowflake/cli/api/output/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/api/output/__init__.py +++ b/src/snowflake/cli/api/output/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/api/output/formats.py b/src/snowflake/cli/api/output/formats.py index e128653ae..0677b8544 100644 --- a/src/snowflake/cli/api/output/formats.py +++ b/src/snowflake/cli/api/output/formats.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from enum import Enum diff --git a/src/snowflake/cli/api/output/types.py b/src/snowflake/cli/api/output/types.py index 348386b80..c5a745738 100644 --- a/src/snowflake/cli/api/output/types.py +++ b/src/snowflake/cli/api/output/types.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import json diff --git a/src/snowflake/cli/api/plugins/__init__.py b/src/snowflake/cli/api/plugins/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/api/plugins/__init__.py +++ b/src/snowflake/cli/api/plugins/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/api/plugins/command/__init__.py b/src/snowflake/cli/api/plugins/command/__init__.py index 106d7eade..52c7f2fea 100644 --- a/src/snowflake/cli/api/plugins/command/__init__.py +++ b/src/snowflake/cli/api/plugins/command/__init__.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from dataclasses import dataclass diff --git a/src/snowflake/cli/api/plugins/command/plugin_hook_specs.py b/src/snowflake/cli/api/plugins/command/plugin_hook_specs.py index f8ca5cf3d..e6216e5c8 100644 --- a/src/snowflake/cli/api/plugins/command/plugin_hook_specs.py +++ b/src/snowflake/cli/api/plugins/command/plugin_hook_specs.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.plugins.command import plugin_hook_spec diff --git a/src/snowflake/cli/api/plugins/plugin_config.py b/src/snowflake/cli/api/plugins/plugin_config.py index 9c36d6c47..3a35e1f06 100644 --- a/src/snowflake/cli/api/plugins/plugin_config.py +++ b/src/snowflake/cli/api/plugins/plugin_config.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from dataclasses import dataclass diff --git a/src/snowflake/cli/api/project/__init__.py b/src/snowflake/cli/api/project/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/api/project/__init__.py +++ b/src/snowflake/cli/api/project/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/api/project/definition.py b/src/snowflake/cli/api/project/definition.py index 12a140cb2..b490e73bb 100644 --- a/src/snowflake/cli/api/project/definition.py +++ b/src/snowflake/cli/api/project/definition.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from pathlib import Path diff --git a/src/snowflake/cli/api/project/definition_manager.py b/src/snowflake/cli/api/project/definition_manager.py index dd9060616..67614ec57 100644 --- a/src/snowflake/cli/api/project/definition_manager.py +++ b/src/snowflake/cli/api/project/definition_manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import functools diff --git a/src/snowflake/cli/api/project/errors.py b/src/snowflake/cli/api/project/errors.py index e136a487d..31cc96153 100644 --- a/src/snowflake/cli/api/project/errors.py +++ b/src/snowflake/cli/api/project/errors.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from textwrap import dedent from pydantic import ValidationError diff --git a/src/snowflake/cli/api/project/schemas/__init__.py b/src/snowflake/cli/api/project/schemas/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/api/project/schemas/__init__.py +++ b/src/snowflake/cli/api/project/schemas/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/api/project/schemas/identifier_model.py b/src/snowflake/cli/api/project/schemas/identifier_model.py index 785427024..724783930 100644 --- a/src/snowflake/cli/api/project/schemas/identifier_model.py +++ b/src/snowflake/cli/api/project/schemas/identifier_model.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import Optional, cast diff --git a/src/snowflake/cli/api/project/schemas/native_app/__init__.py b/src/snowflake/cli/api/project/schemas/native_app/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/api/project/schemas/native_app/__init__.py +++ b/src/snowflake/cli/api/project/schemas/native_app/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/api/project/schemas/native_app/application.py b/src/snowflake/cli/api/project/schemas/native_app/application.py index 8df1a4554..e0fcb0f30 100644 --- a/src/snowflake/cli/api/project/schemas/native_app/application.py +++ b/src/snowflake/cli/api/project/schemas/native_app/application.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import Optional diff --git a/src/snowflake/cli/api/project/schemas/native_app/native_app.py b/src/snowflake/cli/api/project/schemas/native_app/native_app.py index 0dc23e331..ee2550001 100644 --- a/src/snowflake/cli/api/project/schemas/native_app/native_app.py +++ b/src/snowflake/cli/api/project/schemas/native_app/native_app.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import re diff --git a/src/snowflake/cli/api/project/schemas/native_app/package.py b/src/snowflake/cli/api/project/schemas/native_app/package.py index d9efb5156..f62d4ca55 100644 --- a/src/snowflake/cli/api/project/schemas/native_app/package.py +++ b/src/snowflake/cli/api/project/schemas/native_app/package.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import List, Literal, Optional diff --git a/src/snowflake/cli/api/project/schemas/native_app/path_mapping.py b/src/snowflake/cli/api/project/schemas/native_app/path_mapping.py index 85f7bdfe6..74f1795cd 100644 --- a/src/snowflake/cli/api/project/schemas/native_app/path_mapping.py +++ b/src/snowflake/cli/api/project/schemas/native_app/path_mapping.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import Any, Dict, List, Optional, Union diff --git a/src/snowflake/cli/api/project/schemas/project_definition.py b/src/snowflake/cli/api/project/schemas/project_definition.py index 94f321033..24fce70a0 100644 --- a/src/snowflake/cli/api/project/schemas/project_definition.py +++ b/src/snowflake/cli/api/project/schemas/project_definition.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import Any, Dict, Optional, Union diff --git a/src/snowflake/cli/api/project/schemas/snowpark/__init__.py b/src/snowflake/cli/api/project/schemas/snowpark/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/api/project/schemas/snowpark/__init__.py +++ b/src/snowflake/cli/api/project/schemas/snowpark/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/api/project/schemas/snowpark/argument.py b/src/snowflake/cli/api/project/schemas/snowpark/argument.py index 7c2a26c9a..d766ecb3d 100644 --- a/src/snowflake/cli/api/project/schemas/snowpark/argument.py +++ b/src/snowflake/cli/api/project/schemas/snowpark/argument.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import Optional diff --git a/src/snowflake/cli/api/project/schemas/snowpark/callable.py b/src/snowflake/cli/api/project/schemas/snowpark/callable.py index e83f6d351..6039b7736 100644 --- a/src/snowflake/cli/api/project/schemas/snowpark/callable.py +++ b/src/snowflake/cli/api/project/schemas/snowpark/callable.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import Dict, List, Optional, Union diff --git a/src/snowflake/cli/api/project/schemas/snowpark/snowpark.py b/src/snowflake/cli/api/project/schemas/snowpark/snowpark.py index 0a3f66845..28f764e61 100644 --- a/src/snowflake/cli/api/project/schemas/snowpark/snowpark.py +++ b/src/snowflake/cli/api/project/schemas/snowpark/snowpark.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import List, Optional diff --git a/src/snowflake/cli/api/project/schemas/streamlit/__init__.py b/src/snowflake/cli/api/project/schemas/streamlit/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/api/project/schemas/streamlit/__init__.py +++ b/src/snowflake/cli/api/project/schemas/streamlit/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/api/project/schemas/streamlit/streamlit.py b/src/snowflake/cli/api/project/schemas/streamlit/streamlit.py index 33c1abeee..5997ee0e7 100644 --- a/src/snowflake/cli/api/project/schemas/streamlit/streamlit.py +++ b/src/snowflake/cli/api/project/schemas/streamlit/streamlit.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import List, Optional diff --git a/src/snowflake/cli/api/project/schemas/updatable_model.py b/src/snowflake/cli/api/project/schemas/updatable_model.py index 4337f3c76..9ae28059f 100644 --- a/src/snowflake/cli/api/project/schemas/updatable_model.py +++ b/src/snowflake/cli/api/project/schemas/updatable_model.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import Any, Dict diff --git a/src/snowflake/cli/api/project/util.py b/src/snowflake/cli/api/project/util.py index 35a5c11b8..193c3fcd5 100644 --- a/src/snowflake/cli/api/project/util.py +++ b/src/snowflake/cli/api/project/util.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import codecs diff --git a/src/snowflake/cli/api/secure_path.py b/src/snowflake/cli/api/secure_path.py index c736c0fc6..1edceebde 100644 --- a/src/snowflake/cli/api/secure_path.py +++ b/src/snowflake/cli/api/secure_path.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import errno diff --git a/src/snowflake/cli/api/secure_utils.py b/src/snowflake/cli/api/secure_utils.py index 97f4cd555..bba0e2fc9 100644 --- a/src/snowflake/cli/api/secure_utils.py +++ b/src/snowflake/cli/api/secure_utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import stat from pathlib import Path diff --git a/src/snowflake/cli/api/sql_execution.py b/src/snowflake/cli/api/sql_execution.py index ab78be90b..1baaa6a5f 100644 --- a/src/snowflake/cli/api/sql_execution.py +++ b/src/snowflake/cli/api/sql_execution.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/src/snowflake/cli/api/utils/__init__.py b/src/snowflake/cli/api/utils/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/api/utils/__init__.py +++ b/src/snowflake/cli/api/utils/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/api/utils/cursor.py b/src/snowflake/cli/api/utils/cursor.py index 89fa8111e..22ffacf76 100644 --- a/src/snowflake/cli/api/utils/cursor.py +++ b/src/snowflake/cli/api/utils/cursor.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import Callable, List, Optional diff --git a/src/snowflake/cli/api/utils/error_handling.py b/src/snowflake/cli/api/utils/error_handling.py index 9f1e14b8f..e2bb5a592 100644 --- a/src/snowflake/cli/api/utils/error_handling.py +++ b/src/snowflake/cli/api/utils/error_handling.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from contextlib import contextmanager diff --git a/src/snowflake/cli/api/utils/models.py b/src/snowflake/cli/api/utils/models.py index 74e3ff6af..69719a54c 100644 --- a/src/snowflake/cli/api/utils/models.py +++ b/src/snowflake/cli/api/utils/models.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import os diff --git a/src/snowflake/cli/api/utils/naming_utils.py b/src/snowflake/cli/api/utils/naming_utils.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/api/utils/naming_utils.py +++ b/src/snowflake/cli/api/utils/naming_utils.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/api/utils/path_utils.py b/src/snowflake/cli/api/utils/path_utils.py index 9a090cf3e..2b6ae0de8 100644 --- a/src/snowflake/cli/api/utils/path_utils.py +++ b/src/snowflake/cli/api/utils/path_utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import sys diff --git a/src/snowflake/cli/api/utils/rendering.py b/src/snowflake/cli/api/utils/rendering.py index 9804f8c66..16de1e482 100644 --- a/src/snowflake/cli/api/utils/rendering.py +++ b/src/snowflake/cli/api/utils/rendering.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import re diff --git a/src/snowflake/cli/api/utils/types.py b/src/snowflake/cli/api/utils/types.py index 4e4cc2e21..413e95c87 100644 --- a/src/snowflake/cli/api/utils/types.py +++ b/src/snowflake/cli/api/utils/types.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import Any diff --git a/src/snowflake/cli/app/__init__.py b/src/snowflake/cli/app/__init__.py index be574caea..4300237cf 100644 --- a/src/snowflake/cli/app/__init__.py +++ b/src/snowflake/cli/app/__init__.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import logging import os diff --git a/src/snowflake/cli/app/__main__.py b/src/snowflake/cli/app/__main__.py index c18797907..94d516be8 100644 --- a/src/snowflake/cli/app/__main__.py +++ b/src/snowflake/cli/app/__main__.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import sys diff --git a/src/snowflake/cli/app/api_impl/__init__.py b/src/snowflake/cli/app/api_impl/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/app/api_impl/__init__.py +++ b/src/snowflake/cli/app/api_impl/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/app/api_impl/plugin/__init__.py b/src/snowflake/cli/app/api_impl/plugin/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/app/api_impl/plugin/__init__.py +++ b/src/snowflake/cli/app/api_impl/plugin/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/app/api_impl/plugin/plugin_config_provider_impl.py b/src/snowflake/cli/app/api_impl/plugin/plugin_config_provider_impl.py index f4c0b238d..ab1737aed 100644 --- a/src/snowflake/cli/app/api_impl/plugin/plugin_config_provider_impl.py +++ b/src/snowflake/cli/app/api_impl/plugin/plugin_config_provider_impl.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import List diff --git a/src/snowflake/cli/app/cli_app.py b/src/snowflake/cli/app/cli_app.py index 95a34d2aa..e7e23f7af 100644 --- a/src/snowflake/cli/app/cli_app.py +++ b/src/snowflake/cli/app/cli_app.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/src/snowflake/cli/app/commands_registration/__init__.py b/src/snowflake/cli/app/commands_registration/__init__.py index ebe8a08af..c28b33e08 100644 --- a/src/snowflake/cli/app/commands_registration/__init__.py +++ b/src/snowflake/cli/app/commands_registration/__init__.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from dataclasses import dataclass from snowflake.cli.api.plugins.command import CommandSpec diff --git a/src/snowflake/cli/app/commands_registration/builtin_plugins.py b/src/snowflake/cli/app/commands_registration/builtin_plugins.py index a1b1292e1..bb19babf3 100644 --- a/src/snowflake/cli/app/commands_registration/builtin_plugins.py +++ b/src/snowflake/cli/app/commands_registration/builtin_plugins.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.plugins.connection import plugin_spec as connection_plugin_spec from snowflake.cli.plugins.cortex import plugin_spec as cortex_plugin_spec from snowflake.cli.plugins.git import plugin_spec as git_plugin_spec diff --git a/src/snowflake/cli/app/commands_registration/command_plugins_loader.py b/src/snowflake/cli/app/commands_registration/command_plugins_loader.py index d5beccdc4..2566b58eb 100644 --- a/src/snowflake/cli/app/commands_registration/command_plugins_loader.py +++ b/src/snowflake/cli/app/commands_registration/command_plugins_loader.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/src/snowflake/cli/app/commands_registration/commands_registration_with_callbacks.py b/src/snowflake/cli/app/commands_registration/commands_registration_with_callbacks.py index f8864531e..9f6f75478 100644 --- a/src/snowflake/cli/app/commands_registration/commands_registration_with_callbacks.py +++ b/src/snowflake/cli/app/commands_registration/commands_registration_with_callbacks.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from dataclasses import dataclass diff --git a/src/snowflake/cli/app/commands_registration/exception_logging.py b/src/snowflake/cli/app/commands_registration/exception_logging.py index 3c1ec72dd..09e84a217 100644 --- a/src/snowflake/cli/app/commands_registration/exception_logging.py +++ b/src/snowflake/cli/app/commands_registration/exception_logging.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from logging import Logger from typing import Callable diff --git a/src/snowflake/cli/app/commands_registration/threadsafe.py b/src/snowflake/cli/app/commands_registration/threadsafe.py index 6acd65b4c..4912d4b24 100644 --- a/src/snowflake/cli/app/commands_registration/threadsafe.py +++ b/src/snowflake/cli/app/commands_registration/threadsafe.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import threading diff --git a/src/snowflake/cli/app/commands_registration/typer_registration.py b/src/snowflake/cli/app/commands_registration/typer_registration.py index 7766be4e5..0a658b743 100644 --- a/src/snowflake/cli/app/commands_registration/typer_registration.py +++ b/src/snowflake/cli/app/commands_registration/typer_registration.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/src/snowflake/cli/app/constants.py b/src/snowflake/cli/app/constants.py index baf650d17..52d46d5dd 100644 --- a/src/snowflake/cli/app/constants.py +++ b/src/snowflake/cli/app/constants.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import Literal diff --git a/src/snowflake/cli/app/dev/__init__.py b/src/snowflake/cli/app/dev/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/app/dev/__init__.py +++ b/src/snowflake/cli/app/dev/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/app/dev/commands_structure.py b/src/snowflake/cli/app/dev/commands_structure.py index 453d4ad4e..d9929c862 100644 --- a/src/snowflake/cli/app/dev/commands_structure.py +++ b/src/snowflake/cli/app/dev/commands_structure.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from dataclasses import dataclass, field diff --git a/src/snowflake/cli/app/dev/docs/__init__.py b/src/snowflake/cli/app/dev/docs/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/app/dev/docs/__init__.py +++ b/src/snowflake/cli/app/dev/docs/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/app/dev/docs/generator.py b/src/snowflake/cli/app/dev/docs/generator.py index 7785fd59c..41509cd54 100644 --- a/src/snowflake/cli/app/dev/docs/generator.py +++ b/src/snowflake/cli/app/dev/docs/generator.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/src/snowflake/cli/app/dev/pycharm_remote_debug.py b/src/snowflake/cli/app/dev/pycharm_remote_debug.py index 1237b429a..5e7b31fc7 100644 --- a/src/snowflake/cli/app/dev/pycharm_remote_debug.py +++ b/src/snowflake/cli/app/dev/pycharm_remote_debug.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import Optional diff --git a/src/snowflake/cli/app/loggers.py b/src/snowflake/cli/app/loggers.py index 055ccd14c..64732a319 100644 --- a/src/snowflake/cli/app/loggers.py +++ b/src/snowflake/cli/app/loggers.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/src/snowflake/cli/app/main_typer.py b/src/snowflake/cli/app/main_typer.py index 4b627d896..35605e379 100644 --- a/src/snowflake/cli/app/main_typer.py +++ b/src/snowflake/cli/app/main_typer.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import sys diff --git a/src/snowflake/cli/app/printing.py b/src/snowflake/cli/app/printing.py index 873d4b925..390cdb555 100644 --- a/src/snowflake/cli/app/printing.py +++ b/src/snowflake/cli/app/printing.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import json diff --git a/src/snowflake/cli/app/snow_connector.py b/src/snowflake/cli/app/snow_connector.py index e97efd62a..4ba69762b 100644 --- a/src/snowflake/cli/app/snow_connector.py +++ b/src/snowflake/cli/app/snow_connector.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import contextlib diff --git a/src/snowflake/cli/app/telemetry.py b/src/snowflake/cli/app/telemetry.py index c1e2e4e52..579b77daf 100644 --- a/src/snowflake/cli/app/telemetry.py +++ b/src/snowflake/cli/app/telemetry.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import platform diff --git a/src/snowflake/cli/plugins/__init__.py b/src/snowflake/cli/plugins/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/plugins/__init__.py +++ b/src/snowflake/cli/plugins/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/plugins/connection/__init__.py b/src/snowflake/cli/plugins/connection/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/plugins/connection/__init__.py +++ b/src/snowflake/cli/plugins/connection/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/plugins/connection/commands.py b/src/snowflake/cli/plugins/connection/commands.py index b2e555e14..89dd7c9eb 100644 --- a/src/snowflake/cli/plugins/connection/commands.py +++ b/src/snowflake/cli/plugins/connection/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/src/snowflake/cli/plugins/connection/plugin_spec.py b/src/snowflake/cli/plugins/connection/plugin_spec.py index 87221d6f6..03ffcf6fb 100644 --- a/src/snowflake/cli/plugins/connection/plugin_spec.py +++ b/src/snowflake/cli/plugins/connection/plugin_spec.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.plugins.command import ( SNOWCLI_ROOT_COMMAND_PATH, CommandSpec, diff --git a/src/snowflake/cli/plugins/connection/util.py b/src/snowflake/cli/plugins/connection/util.py index 740046333..f2409ab50 100644 --- a/src/snowflake/cli/plugins/connection/util.py +++ b/src/snowflake/cli/plugins/connection/util.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import logging from click.exceptions import ClickException diff --git a/src/snowflake/cli/plugins/cortex/__init__.py b/src/snowflake/cli/plugins/cortex/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/plugins/cortex/__init__.py +++ b/src/snowflake/cli/plugins/cortex/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/plugins/cortex/commands.py b/src/snowflake/cli/plugins/cortex/commands.py index 4a2ba04ee..6027bb478 100644 --- a/src/snowflake/cli/plugins/cortex/commands.py +++ b/src/snowflake/cli/plugins/cortex/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import sys diff --git a/src/snowflake/cli/plugins/cortex/constants.py b/src/snowflake/cli/plugins/cortex/constants.py index 0d38c21c2..407fdcf87 100644 --- a/src/snowflake/cli/plugins/cortex/constants.py +++ b/src/snowflake/cli/plugins/cortex/constants.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.plugins.cortex.types import Model DEFAULT_MODEL: Model = Model("snowflake-arctic") diff --git a/src/snowflake/cli/plugins/cortex/manager.py b/src/snowflake/cli/plugins/cortex/manager.py index 1d5ae6c3a..a9362a41e 100644 --- a/src/snowflake/cli/plugins/cortex/manager.py +++ b/src/snowflake/cli/plugins/cortex/manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import json diff --git a/src/snowflake/cli/plugins/cortex/plugin_spec.py b/src/snowflake/cli/plugins/cortex/plugin_spec.py index ce27955d4..f9cbc61f6 100644 --- a/src/snowflake/cli/plugins/cortex/plugin_spec.py +++ b/src/snowflake/cli/plugins/cortex/plugin_spec.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.plugins.command import ( SNOWCLI_ROOT_COMMAND_PATH, CommandSpec, diff --git a/src/snowflake/cli/plugins/cortex/types.py b/src/snowflake/cli/plugins/cortex/types.py index 4036f8581..81d30dec2 100644 --- a/src/snowflake/cli/plugins/cortex/types.py +++ b/src/snowflake/cli/plugins/cortex/types.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from typing import NewType Text = NewType("Text", str) diff --git a/src/snowflake/cli/plugins/git/__init__.py b/src/snowflake/cli/plugins/git/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/plugins/git/__init__.py +++ b/src/snowflake/cli/plugins/git/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/plugins/git/commands.py b/src/snowflake/cli/plugins/git/commands.py index a1a8853ac..4e5bec5f6 100644 --- a/src/snowflake/cli/plugins/git/commands.py +++ b/src/snowflake/cli/plugins/git/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/src/snowflake/cli/plugins/git/manager.py b/src/snowflake/cli/plugins/git/manager.py index 5caeca6a1..d1e4d1887 100644 --- a/src/snowflake/cli/plugins/git/manager.py +++ b/src/snowflake/cli/plugins/git/manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from pathlib import Path from textwrap import dedent diff --git a/src/snowflake/cli/plugins/git/plugin_spec.py b/src/snowflake/cli/plugins/git/plugin_spec.py index f5aead910..6af1275dd 100644 --- a/src/snowflake/cli/plugins/git/plugin_spec.py +++ b/src/snowflake/cli/plugins/git/plugin_spec.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.plugins.command import ( SNOWCLI_ROOT_COMMAND_PATH, CommandSpec, diff --git a/src/snowflake/cli/plugins/nativeapp/__init__.py b/src/snowflake/cli/plugins/nativeapp/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/plugins/nativeapp/__init__.py +++ b/src/snowflake/cli/plugins/nativeapp/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/plugins/nativeapp/artifacts.py b/src/snowflake/cli/plugins/nativeapp/artifacts.py index 79e6f01c0..58e9d6f3e 100644 --- a/src/snowflake/cli/plugins/nativeapp/artifacts.py +++ b/src/snowflake/cli/plugins/nativeapp/artifacts.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import itertools diff --git a/src/snowflake/cli/plugins/nativeapp/codegen/__init__.py b/src/snowflake/cli/plugins/nativeapp/codegen/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/plugins/nativeapp/codegen/__init__.py +++ b/src/snowflake/cli/plugins/nativeapp/codegen/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/plugins/nativeapp/codegen/artifact_processor.py b/src/snowflake/cli/plugins/nativeapp/codegen/artifact_processor.py index f950d0418..397e594a2 100644 --- a/src/snowflake/cli/plugins/nativeapp/codegen/artifact_processor.py +++ b/src/snowflake/cli/plugins/nativeapp/codegen/artifact_processor.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from abc import ABC, abstractmethod diff --git a/src/snowflake/cli/plugins/nativeapp/codegen/compiler.py b/src/snowflake/cli/plugins/nativeapp/codegen/compiler.py index aa6c5bf6a..5125bb62f 100644 --- a/src/snowflake/cli/plugins/nativeapp/codegen/compiler.py +++ b/src/snowflake/cli/plugins/nativeapp/codegen/compiler.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from pathlib import Path diff --git a/src/snowflake/cli/plugins/nativeapp/codegen/sandbox.py b/src/snowflake/cli/plugins/nativeapp/codegen/sandbox.py index fff585d15..824a15863 100644 --- a/src/snowflake/cli/plugins/nativeapp/codegen/sandbox.py +++ b/src/snowflake/cli/plugins/nativeapp/codegen/sandbox.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import os diff --git a/src/snowflake/cli/plugins/nativeapp/codegen/snowpark/extension_function_utils.py b/src/snowflake/cli/plugins/nativeapp/codegen/snowpark/extension_function_utils.py index 10083e732..1fa1b450e 100644 --- a/src/snowflake/cli/plugins/nativeapp/codegen/snowpark/extension_function_utils.py +++ b/src/snowflake/cli/plugins/nativeapp/codegen/snowpark/extension_function_utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import ast diff --git a/src/snowflake/cli/plugins/nativeapp/codegen/snowpark/models.py b/src/snowflake/cli/plugins/nativeapp/codegen/snowpark/models.py index a0a0cc3a1..449825cea 100644 --- a/src/snowflake/cli/plugins/nativeapp/codegen/snowpark/models.py +++ b/src/snowflake/cli/plugins/nativeapp/codegen/snowpark/models.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from enum import Enum diff --git a/src/snowflake/cli/plugins/nativeapp/codegen/snowpark/python_processor.py b/src/snowflake/cli/plugins/nativeapp/codegen/snowpark/python_processor.py index ed52ac2fa..b6c04f139 100644 --- a/src/snowflake/cli/plugins/nativeapp/codegen/snowpark/python_processor.py +++ b/src/snowflake/cli/plugins/nativeapp/codegen/snowpark/python_processor.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import json diff --git a/src/snowflake/cli/plugins/nativeapp/commands.py b/src/snowflake/cli/plugins/nativeapp/commands.py index 98d73322d..34c0f3c9b 100644 --- a/src/snowflake/cli/plugins/nativeapp/commands.py +++ b/src/snowflake/cli/plugins/nativeapp/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/src/snowflake/cli/plugins/nativeapp/common_flags.py b/src/snowflake/cli/plugins/nativeapp/common_flags.py index 92bbd3e64..3d31f2514 100644 --- a/src/snowflake/cli/plugins/nativeapp/common_flags.py +++ b/src/snowflake/cli/plugins/nativeapp/common_flags.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import typer from snowflake.cli.plugins.nativeapp.utils import is_tty_interactive diff --git a/src/snowflake/cli/plugins/nativeapp/constants.py b/src/snowflake/cli/plugins/nativeapp/constants.py index 7c0c1678f..2ada8100b 100644 --- a/src/snowflake/cli/plugins/nativeapp/constants.py +++ b/src/snowflake/cli/plugins/nativeapp/constants.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + SPECIAL_COMMENT_OLD = "GENERATED_BY_SNOWCLI" SPECIAL_COMMENT = "GENERATED_BY_SNOWFLAKECLI" ALLOWED_SPECIAL_COMMENTS = {SPECIAL_COMMENT, SPECIAL_COMMENT_OLD} diff --git a/src/snowflake/cli/plugins/nativeapp/exceptions.py b/src/snowflake/cli/plugins/nativeapp/exceptions.py index 541b8d5ad..4a4a515e3 100644 --- a/src/snowflake/cli/plugins/nativeapp/exceptions.py +++ b/src/snowflake/cli/plugins/nativeapp/exceptions.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from textwrap import dedent import jinja2 diff --git a/src/snowflake/cli/plugins/nativeapp/feature_flags.py b/src/snowflake/cli/plugins/nativeapp/feature_flags.py index 5442ebe4c..bf765673d 100644 --- a/src/snowflake/cli/plugins/nativeapp/feature_flags.py +++ b/src/snowflake/cli/plugins/nativeapp/feature_flags.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from enum import unique from snowflake.cli.api.feature_flags import BooleanFlag, FeatureFlagMixin diff --git a/src/snowflake/cli/plugins/nativeapp/init.py b/src/snowflake/cli/plugins/nativeapp/init.py index 6b71934c0..771efaa46 100644 --- a/src/snowflake/cli/plugins/nativeapp/init.py +++ b/src/snowflake/cli/plugins/nativeapp/init.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/src/snowflake/cli/plugins/nativeapp/manager.py b/src/snowflake/cli/plugins/nativeapp/manager.py index c4cb53bba..41482e2eb 100644 --- a/src/snowflake/cli/plugins/nativeapp/manager.py +++ b/src/snowflake/cli/plugins/nativeapp/manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import os diff --git a/src/snowflake/cli/plugins/nativeapp/plugin_spec.py b/src/snowflake/cli/plugins/nativeapp/plugin_spec.py index 8227d6809..67b2aad7f 100644 --- a/src/snowflake/cli/plugins/nativeapp/plugin_spec.py +++ b/src/snowflake/cli/plugins/nativeapp/plugin_spec.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.plugins.command import ( SNOWCLI_ROOT_COMMAND_PATH, CommandSpec, diff --git a/src/snowflake/cli/plugins/nativeapp/policy.py b/src/snowflake/cli/plugins/nativeapp/policy.py index 9ffec7da9..5dc5a3869 100644 --- a/src/snowflake/cli/plugins/nativeapp/policy.py +++ b/src/snowflake/cli/plugins/nativeapp/policy.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from abc import ABC, abstractmethod diff --git a/src/snowflake/cli/plugins/nativeapp/run_processor.py b/src/snowflake/cli/plugins/nativeapp/run_processor.py index c557329fa..2eb676f57 100644 --- a/src/snowflake/cli/plugins/nativeapp/run_processor.py +++ b/src/snowflake/cli/plugins/nativeapp/run_processor.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from pathlib import Path diff --git a/src/snowflake/cli/plugins/nativeapp/teardown_processor.py b/src/snowflake/cli/plugins/nativeapp/teardown_processor.py index 549e10657..f017e45aa 100644 --- a/src/snowflake/cli/plugins/nativeapp/teardown_processor.py +++ b/src/snowflake/cli/plugins/nativeapp/teardown_processor.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from pathlib import Path diff --git a/src/snowflake/cli/plugins/nativeapp/utils.py b/src/snowflake/cli/plugins/nativeapp/utils.py index 2fc452628..4d2b390e9 100644 --- a/src/snowflake/cli/plugins/nativeapp/utils.py +++ b/src/snowflake/cli/plugins/nativeapp/utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import os diff --git a/src/snowflake/cli/plugins/nativeapp/version/__init__.py b/src/snowflake/cli/plugins/nativeapp/version/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/plugins/nativeapp/version/__init__.py +++ b/src/snowflake/cli/plugins/nativeapp/version/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/plugins/nativeapp/version/commands.py b/src/snowflake/cli/plugins/nativeapp/version/commands.py index 1efe24ef5..ad6ed23d3 100644 --- a/src/snowflake/cli/plugins/nativeapp/version/commands.py +++ b/src/snowflake/cli/plugins/nativeapp/version/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/src/snowflake/cli/plugins/nativeapp/version/version_processor.py b/src/snowflake/cli/plugins/nativeapp/version/version_processor.py index 0cd1cea27..a78982618 100644 --- a/src/snowflake/cli/plugins/nativeapp/version/version_processor.py +++ b/src/snowflake/cli/plugins/nativeapp/version/version_processor.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from pathlib import Path diff --git a/src/snowflake/cli/plugins/notebook/__init__.py b/src/snowflake/cli/plugins/notebook/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/plugins/notebook/__init__.py +++ b/src/snowflake/cli/plugins/notebook/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/plugins/notebook/commands.py b/src/snowflake/cli/plugins/notebook/commands.py index b11c4f877..6279f3928 100644 --- a/src/snowflake/cli/plugins/notebook/commands.py +++ b/src/snowflake/cli/plugins/notebook/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import logging import typer diff --git a/src/snowflake/cli/plugins/notebook/exceptions.py b/src/snowflake/cli/plugins/notebook/exceptions.py index e24a3825d..dec2182c2 100644 --- a/src/snowflake/cli/plugins/notebook/exceptions.py +++ b/src/snowflake/cli/plugins/notebook/exceptions.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from click.exceptions import ClickException diff --git a/src/snowflake/cli/plugins/notebook/manager.py b/src/snowflake/cli/plugins/notebook/manager.py index 1dfb2ddb0..5cdac19c6 100644 --- a/src/snowflake/cli/plugins/notebook/manager.py +++ b/src/snowflake/cli/plugins/notebook/manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from pathlib import Path from textwrap import dedent diff --git a/src/snowflake/cli/plugins/notebook/plugin_spec.py b/src/snowflake/cli/plugins/notebook/plugin_spec.py index edcaef756..48c6c4bc6 100644 --- a/src/snowflake/cli/plugins/notebook/plugin_spec.py +++ b/src/snowflake/cli/plugins/notebook/plugin_spec.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.plugins.command import ( SNOWCLI_ROOT_COMMAND_PATH, CommandSpec, diff --git a/src/snowflake/cli/plugins/notebook/types.py b/src/snowflake/cli/plugins/notebook/types.py index 8f42b80ed..7b97d7995 100644 --- a/src/snowflake/cli/plugins/notebook/types.py +++ b/src/snowflake/cli/plugins/notebook/types.py @@ -1,2 +1,16 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + NotebookName = str NotebookStagePath = str diff --git a/src/snowflake/cli/plugins/object/__init__.py b/src/snowflake/cli/plugins/object/__init__.py index cf5630e02..a093b8c23 100644 --- a/src/snowflake/cli/plugins/object/__init__.py +++ b/src/snowflake/cli/plugins/object/__init__.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.commands.snow_typer import SnowTyper from snowflake.cli.plugins.object.commands import app as show_app from snowflake.cli.plugins.stage.commands import app as stage_app diff --git a/src/snowflake/cli/plugins/object/command_aliases.py b/src/snowflake/cli/plugins/object/command_aliases.py index d4db7de20..3c5b0b447 100644 --- a/src/snowflake/cli/plugins/object/command_aliases.py +++ b/src/snowflake/cli/plugins/object/command_aliases.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import List, Optional, Tuple diff --git a/src/snowflake/cli/plugins/object/commands.py b/src/snowflake/cli/plugins/object/commands.py index 1ceb30c50..45437d866 100644 --- a/src/snowflake/cli/plugins/object/commands.py +++ b/src/snowflake/cli/plugins/object/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import Tuple diff --git a/src/snowflake/cli/plugins/object/common.py b/src/snowflake/cli/plugins/object/common.py index a0868509c..149028e62 100644 --- a/src/snowflake/cli/plugins/object/common.py +++ b/src/snowflake/cli/plugins/object/common.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from dataclasses import dataclass diff --git a/src/snowflake/cli/plugins/object/manager.py b/src/snowflake/cli/plugins/object/manager.py index 7bc23c2b3..49e7e32a3 100644 --- a/src/snowflake/cli/plugins/object/manager.py +++ b/src/snowflake/cli/plugins/object/manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import Optional, Tuple, Union diff --git a/src/snowflake/cli/plugins/object/plugin_spec.py b/src/snowflake/cli/plugins/object/plugin_spec.py index 8681ee949..1fe2d006f 100644 --- a/src/snowflake/cli/plugins/object/plugin_spec.py +++ b/src/snowflake/cli/plugins/object/plugin_spec.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.plugins.command import ( SNOWCLI_ROOT_COMMAND_PATH, CommandSpec, diff --git a/src/snowflake/cli/plugins/object_stage_deprecated/__init__.py b/src/snowflake/cli/plugins/object_stage_deprecated/__init__.py index 2c8d05657..a5df24d02 100644 --- a/src/snowflake/cli/plugins/object_stage_deprecated/__init__.py +++ b/src/snowflake/cli/plugins/object_stage_deprecated/__init__.py @@ -1 +1,15 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # TODO 3.0: remove this file diff --git a/src/snowflake/cli/plugins/object_stage_deprecated/commands.py b/src/snowflake/cli/plugins/object_stage_deprecated/commands.py index 351c8fffb..4caf9ff0f 100644 --- a/src/snowflake/cli/plugins/object_stage_deprecated/commands.py +++ b/src/snowflake/cli/plugins/object_stage_deprecated/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # TODO 3.0: remove these commands from __future__ import annotations diff --git a/src/snowflake/cli/plugins/object_stage_deprecated/plugin_spec.py b/src/snowflake/cli/plugins/object_stage_deprecated/plugin_spec.py index da1f8a6c7..8270844b9 100644 --- a/src/snowflake/cli/plugins/object_stage_deprecated/plugin_spec.py +++ b/src/snowflake/cli/plugins/object_stage_deprecated/plugin_spec.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # TODO 3.0: remove this file from snowflake.cli.api.plugins.command import ( diff --git a/src/snowflake/cli/plugins/snowpark/__init__.py b/src/snowflake/cli/plugins/snowpark/__init__.py index 83b16cf80..987708436 100644 --- a/src/snowflake/cli/plugins/snowpark/__init__.py +++ b/src/snowflake/cli/plugins/snowpark/__init__.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.plugins.snowpark.commands import app from snowflake.cli.plugins.snowpark.package.commands import app as package_app diff --git a/src/snowflake/cli/plugins/snowpark/commands.py b/src/snowflake/cli/plugins/snowpark/commands.py index 80819b044..5d430a94f 100644 --- a/src/snowflake/cli/plugins/snowpark/commands.py +++ b/src/snowflake/cli/plugins/snowpark/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/src/snowflake/cli/plugins/snowpark/common.py b/src/snowflake/cli/plugins/snowpark/common.py index 8fdb0d8f5..344b6f740 100644 --- a/src/snowflake/cli/plugins/snowpark/common.py +++ b/src/snowflake/cli/plugins/snowpark/common.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import re diff --git a/src/snowflake/cli/plugins/snowpark/manager.py b/src/snowflake/cli/plugins/snowpark/manager.py index c25684deb..06464fee9 100644 --- a/src/snowflake/cli/plugins/snowpark/manager.py +++ b/src/snowflake/cli/plugins/snowpark/manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/src/snowflake/cli/plugins/snowpark/models.py b/src/snowflake/cli/plugins/snowpark/models.py index c7e01bfac..32b684f7c 100644 --- a/src/snowflake/cli/plugins/snowpark/models.py +++ b/src/snowflake/cli/plugins/snowpark/models.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import re diff --git a/src/snowflake/cli/plugins/snowpark/package/__init__.py b/src/snowflake/cli/plugins/snowpark/package/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/plugins/snowpark/package/__init__.py +++ b/src/snowflake/cli/plugins/snowpark/package/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/plugins/snowpark/package/anaconda_packages.py b/src/snowflake/cli/plugins/snowpark/package/anaconda_packages.py index e8ec0ddd1..d070b17e0 100644 --- a/src/snowflake/cli/plugins/snowpark/package/anaconda_packages.py +++ b/src/snowflake/cli/plugins/snowpark/package/anaconda_packages.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/src/snowflake/cli/plugins/snowpark/package/commands.py b/src/snowflake/cli/plugins/snowpark/package/commands.py index fb1cd30c3..bbb5a6f5d 100644 --- a/src/snowflake/cli/plugins/snowpark/package/commands.py +++ b/src/snowflake/cli/plugins/snowpark/package/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/src/snowflake/cli/plugins/snowpark/package/manager.py b/src/snowflake/cli/plugins/snowpark/package/manager.py index fc8961aec..ba1026698 100644 --- a/src/snowflake/cli/plugins/snowpark/package/manager.py +++ b/src/snowflake/cli/plugins/snowpark/package/manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/src/snowflake/cli/plugins/snowpark/package/utils.py b/src/snowflake/cli/plugins/snowpark/package/utils.py index 4e831dcda..587548253 100644 --- a/src/snowflake/cli/plugins/snowpark/package/utils.py +++ b/src/snowflake/cli/plugins/snowpark/package/utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from snowflake.cli.api.secure_path import SecurePath diff --git a/src/snowflake/cli/plugins/snowpark/package_utils.py b/src/snowflake/cli/plugins/snowpark/package_utils.py index 7021a2a2d..2269cbf81 100644 --- a/src/snowflake/cli/plugins/snowpark/package_utils.py +++ b/src/snowflake/cli/plugins/snowpark/package_utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import dataclasses diff --git a/src/snowflake/cli/plugins/snowpark/plugin_spec.py b/src/snowflake/cli/plugins/snowpark/plugin_spec.py index c56142b97..039413f18 100644 --- a/src/snowflake/cli/plugins/snowpark/plugin_spec.py +++ b/src/snowflake/cli/plugins/snowpark/plugin_spec.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.plugins.command import ( SNOWCLI_ROOT_COMMAND_PATH, CommandSpec, diff --git a/src/snowflake/cli/plugins/snowpark/snowpark_package_paths.py b/src/snowflake/cli/plugins/snowpark/snowpark_package_paths.py index 922a99d62..87a9a863f 100644 --- a/src/snowflake/cli/plugins/snowpark/snowpark_package_paths.py +++ b/src/snowflake/cli/plugins/snowpark/snowpark_package_paths.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from dataclasses import dataclass from snowflake.cli.api.project.schemas.snowpark.snowpark import Snowpark diff --git a/src/snowflake/cli/plugins/snowpark/snowpark_shared.py b/src/snowflake/cli/plugins/snowpark/snowpark_shared.py index 3b3233718..8f7d10835 100644 --- a/src/snowflake/cli/plugins/snowpark/snowpark_shared.py +++ b/src/snowflake/cli/plugins/snowpark/snowpark_shared.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import click diff --git a/src/snowflake/cli/plugins/snowpark/zipper.py b/src/snowflake/cli/plugins/snowpark/zipper.py index 2e30cb9ed..f2eb1c241 100644 --- a/src/snowflake/cli/plugins/snowpark/zipper.py +++ b/src/snowflake/cli/plugins/snowpark/zipper.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import fnmatch diff --git a/src/snowflake/cli/plugins/spcs/__init__.py b/src/snowflake/cli/plugins/spcs/__init__.py index d0fd45174..1cd5ee95b 100644 --- a/src/snowflake/cli/plugins/spcs/__init__.py +++ b/src/snowflake/cli/plugins/spcs/__init__.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.commands.snow_typer import SnowTyper from snowflake.cli.plugins.spcs.compute_pool.commands import ( app as compute_pools_app, diff --git a/src/snowflake/cli/plugins/spcs/common.py b/src/snowflake/cli/plugins/spcs/common.py index 07d8a4ce2..6c1206d11 100644 --- a/src/snowflake/cli/plugins/spcs/common.py +++ b/src/snowflake/cli/plugins/spcs/common.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import sys diff --git a/src/snowflake/cli/plugins/spcs/compute_pool/__init__.py b/src/snowflake/cli/plugins/spcs/compute_pool/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/plugins/spcs/compute_pool/__init__.py +++ b/src/snowflake/cli/plugins/spcs/compute_pool/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/plugins/spcs/compute_pool/commands.py b/src/snowflake/cli/plugins/spcs/compute_pool/commands.py index 20984a514..8c41ed389 100644 --- a/src/snowflake/cli/plugins/spcs/compute_pool/commands.py +++ b/src/snowflake/cli/plugins/spcs/compute_pool/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import Optional diff --git a/src/snowflake/cli/plugins/spcs/compute_pool/manager.py b/src/snowflake/cli/plugins/spcs/compute_pool/manager.py index 0a464bb8c..cf887e57a 100644 --- a/src/snowflake/cli/plugins/spcs/compute_pool/manager.py +++ b/src/snowflake/cli/plugins/spcs/compute_pool/manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import List, Optional diff --git a/src/snowflake/cli/plugins/spcs/image_registry/__init__.py b/src/snowflake/cli/plugins/spcs/image_registry/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/plugins/spcs/image_registry/__init__.py +++ b/src/snowflake/cli/plugins/spcs/image_registry/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/plugins/spcs/image_registry/commands.py b/src/snowflake/cli/plugins/spcs/image_registry/commands.py index f73dccf5c..3e8a844fe 100644 --- a/src/snowflake/cli/plugins/spcs/image_registry/commands.py +++ b/src/snowflake/cli/plugins/spcs/image_registry/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.commands.snow_typer import SnowTyper from snowflake.cli.api.output.types import MessageResult, ObjectResult from snowflake.cli.plugins.spcs.image_registry.manager import ( diff --git a/src/snowflake/cli/plugins/spcs/image_registry/manager.py b/src/snowflake/cli/plugins/spcs/image_registry/manager.py index e8aa3012d..4c522afc0 100644 --- a/src/snowflake/cli/plugins/spcs/image_registry/manager.py +++ b/src/snowflake/cli/plugins/spcs/image_registry/manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import base64 import json import re diff --git a/src/snowflake/cli/plugins/spcs/image_repository/__init__.py b/src/snowflake/cli/plugins/spcs/image_repository/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/plugins/spcs/image_repository/__init__.py +++ b/src/snowflake/cli/plugins/spcs/image_repository/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/plugins/spcs/image_repository/commands.py b/src/snowflake/cli/plugins/spcs/image_repository/commands.py index 43b437685..f400bc7e7 100644 --- a/src/snowflake/cli/plugins/spcs/image_repository/commands.py +++ b/src/snowflake/cli/plugins/spcs/image_repository/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import json diff --git a/src/snowflake/cli/plugins/spcs/image_repository/manager.py b/src/snowflake/cli/plugins/spcs/image_repository/manager.py index f96a777a0..a8abebe1a 100644 --- a/src/snowflake/cli/plugins/spcs/image_repository/manager.py +++ b/src/snowflake/cli/plugins/spcs/image_repository/manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from urllib.parse import urlparse from snowflake.cli.api.constants import ObjectType diff --git a/src/snowflake/cli/plugins/spcs/jobs/__init__.py b/src/snowflake/cli/plugins/spcs/jobs/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/plugins/spcs/jobs/__init__.py +++ b/src/snowflake/cli/plugins/spcs/jobs/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/plugins/spcs/jobs/commands.py b/src/snowflake/cli/plugins/spcs/jobs/commands.py index 94dd99b8b..513d322ea 100644 --- a/src/snowflake/cli/plugins/spcs/jobs/commands.py +++ b/src/snowflake/cli/plugins/spcs/jobs/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import sys from pathlib import Path diff --git a/src/snowflake/cli/plugins/spcs/jobs/manager.py b/src/snowflake/cli/plugins/spcs/jobs/manager.py index 6da3b94f2..48aa65914 100644 --- a/src/snowflake/cli/plugins/spcs/jobs/manager.py +++ b/src/snowflake/cli/plugins/spcs/jobs/manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from pathlib import Path from snowflake.cli.api.constants import DEFAULT_SIZE_LIMIT_MB diff --git a/src/snowflake/cli/plugins/spcs/plugin_spec.py b/src/snowflake/cli/plugins/spcs/plugin_spec.py index bf0e7f4e5..ce224a81f 100644 --- a/src/snowflake/cli/plugins/spcs/plugin_spec.py +++ b/src/snowflake/cli/plugins/spcs/plugin_spec.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.plugins.command import ( SNOWCLI_ROOT_COMMAND_PATH, CommandSpec, diff --git a/src/snowflake/cli/plugins/spcs/services/__init__.py b/src/snowflake/cli/plugins/spcs/services/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/plugins/spcs/services/__init__.py +++ b/src/snowflake/cli/plugins/spcs/services/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/plugins/spcs/services/commands.py b/src/snowflake/cli/plugins/spcs/services/commands.py index 499dcfd5d..06fbd9d86 100644 --- a/src/snowflake/cli/plugins/spcs/services/commands.py +++ b/src/snowflake/cli/plugins/spcs/services/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import sys diff --git a/src/snowflake/cli/plugins/spcs/services/manager.py b/src/snowflake/cli/plugins/spcs/services/manager.py index d3aedbf5c..ef1ada161 100644 --- a/src/snowflake/cli/plugins/spcs/services/manager.py +++ b/src/snowflake/cli/plugins/spcs/services/manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import json diff --git a/src/snowflake/cli/plugins/sql/__init__.py b/src/snowflake/cli/plugins/sql/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/plugins/sql/__init__.py +++ b/src/snowflake/cli/plugins/sql/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/plugins/sql/commands.py b/src/snowflake/cli/plugins/sql/commands.py index 24f53ed3f..6c1d75f28 100644 --- a/src/snowflake/cli/plugins/sql/commands.py +++ b/src/snowflake/cli/plugins/sql/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from pathlib import Path diff --git a/src/snowflake/cli/plugins/sql/manager.py b/src/snowflake/cli/plugins/sql/manager.py index b86c5b625..a3f3da777 100644 --- a/src/snowflake/cli/plugins/sql/manager.py +++ b/src/snowflake/cli/plugins/sql/manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import sys diff --git a/src/snowflake/cli/plugins/sql/plugin_spec.py b/src/snowflake/cli/plugins/sql/plugin_spec.py index 94c549a21..79e76dee9 100644 --- a/src/snowflake/cli/plugins/sql/plugin_spec.py +++ b/src/snowflake/cli/plugins/sql/plugin_spec.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.plugins.command import ( SNOWCLI_ROOT_COMMAND_PATH, CommandSpec, diff --git a/src/snowflake/cli/plugins/sql/snowsql_templating.py b/src/snowflake/cli/plugins/sql/snowsql_templating.py index 2798356e5..5c8684afd 100644 --- a/src/snowflake/cli/plugins/sql/snowsql_templating.py +++ b/src/snowflake/cli/plugins/sql/snowsql_templating.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import string diff --git a/src/snowflake/cli/plugins/stage/__init__.py b/src/snowflake/cli/plugins/stage/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/plugins/stage/__init__.py +++ b/src/snowflake/cli/plugins/stage/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/plugins/stage/commands.py b/src/snowflake/cli/plugins/stage/commands.py index ddd562e1d..01481620d 100644 --- a/src/snowflake/cli/plugins/stage/commands.py +++ b/src/snowflake/cli/plugins/stage/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import itertools diff --git a/src/snowflake/cli/plugins/stage/diff.py b/src/snowflake/cli/plugins/stage/diff.py index f24aed5d0..e47a58dbd 100644 --- a/src/snowflake/cli/plugins/stage/diff.py +++ b/src/snowflake/cli/plugins/stage/diff.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import hashlib diff --git a/src/snowflake/cli/plugins/stage/manager.py b/src/snowflake/cli/plugins/stage/manager.py index 0a8632387..0d60bfb7e 100644 --- a/src/snowflake/cli/plugins/stage/manager.py +++ b/src/snowflake/cli/plugins/stage/manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import fnmatch diff --git a/src/snowflake/cli/plugins/stage/plugin_spec.py b/src/snowflake/cli/plugins/stage/plugin_spec.py index 319a1c255..ed2537e3f 100644 --- a/src/snowflake/cli/plugins/stage/plugin_spec.py +++ b/src/snowflake/cli/plugins/stage/plugin_spec.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.plugins.command import ( SNOWCLI_ROOT_COMMAND_PATH, CommandSpec, diff --git a/src/snowflake/cli/plugins/streamlit/__init__.py b/src/snowflake/cli/plugins/streamlit/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/plugins/streamlit/__init__.py +++ b/src/snowflake/cli/plugins/streamlit/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/plugins/streamlit/commands.py b/src/snowflake/cli/plugins/streamlit/commands.py index 6bebd4edb..5279c084b 100644 --- a/src/snowflake/cli/plugins/streamlit/commands.py +++ b/src/snowflake/cli/plugins/streamlit/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/src/snowflake/cli/plugins/streamlit/manager.py b/src/snowflake/cli/plugins/streamlit/manager.py index 59bafff26..6c91660d4 100644 --- a/src/snowflake/cli/plugins/streamlit/manager.py +++ b/src/snowflake/cli/plugins/streamlit/manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/src/snowflake/cli/plugins/streamlit/plugin_spec.py b/src/snowflake/cli/plugins/streamlit/plugin_spec.py index e31aec26e..aab562aaa 100644 --- a/src/snowflake/cli/plugins/streamlit/plugin_spec.py +++ b/src/snowflake/cli/plugins/streamlit/plugin_spec.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.plugins.command import ( SNOWCLI_ROOT_COMMAND_PATH, CommandSpec, diff --git a/src/snowflake/cli/templates/default_snowpark/app/__init__.py b/src/snowflake/cli/templates/default_snowpark/app/__init__.py index e69de29bb..ada0a4e13 100644 --- a/src/snowflake/cli/templates/default_snowpark/app/__init__.py +++ b/src/snowflake/cli/templates/default_snowpark/app/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/src/snowflake/cli/templates/default_snowpark/app/common.py b/src/snowflake/cli/templates/default_snowpark/app/common.py index 17013ea6f..ea2e5f05c 100644 --- a/src/snowflake/cli/templates/default_snowpark/app/common.py +++ b/src/snowflake/cli/templates/default_snowpark/app/common.py @@ -1,2 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + def print_hello(name: str): return f"Hello {name}!" diff --git a/src/snowflake/cli/templates/default_snowpark/app/functions.py b/src/snowflake/cli/templates/default_snowpark/app/functions.py index d9e3b5407..1136205b2 100644 --- a/src/snowflake/cli/templates/default_snowpark/app/functions.py +++ b/src/snowflake/cli/templates/default_snowpark/app/functions.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import sys diff --git a/src/snowflake/cli/templates/default_snowpark/app/procedures.py b/src/snowflake/cli/templates/default_snowpark/app/procedures.py index 5369ac4fd..aebd84d0c 100644 --- a/src/snowflake/cli/templates/default_snowpark/app/procedures.py +++ b/src/snowflake/cli/templates/default_snowpark/app/procedures.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import sys diff --git a/src/snowflake/cli/templates/default_streamlit/common/hello.py b/src/snowflake/cli/templates/default_streamlit/common/hello.py index ecf4f843f..5f201a057 100644 --- a/src/snowflake/cli/templates/default_streamlit/common/hello.py +++ b/src/snowflake/cli/templates/default_streamlit/common/hello.py @@ -1,2 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + def say_hello(): return "Hello!" diff --git a/src/snowflake/cli/templates/default_streamlit/pages/my_page.py b/src/snowflake/cli/templates/default_streamlit/pages/my_page.py index bc3ecbccb..9a064bd3a 100644 --- a/src/snowflake/cli/templates/default_streamlit/pages/my_page.py +++ b/src/snowflake/cli/templates/default_streamlit/pages/my_page.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import streamlit as st st.title("Example page") diff --git a/src/snowflake/cli/templates/default_streamlit/streamlit_app.py b/src/snowflake/cli/templates/default_streamlit/streamlit_app.py index 234a47273..bbd60f641 100644 --- a/src/snowflake/cli/templates/default_streamlit/streamlit_app.py +++ b/src/snowflake/cli/templates/default_streamlit/streamlit_app.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import streamlit as st from common.hello import say_hello diff --git a/src/snowflake/cli/templates/environment.yml.jinja b/src/snowflake/cli/templates/environment.yml.jinja deleted file mode 100644 index f9be58d16..000000000 --- a/src/snowflake/cli/templates/environment.yml.jinja +++ /dev/null @@ -1,5 +0,0 @@ -name: sf_env -channels: -- snowflake -dependencies: -{{dependencies}} diff --git a/src/snowflake/cli/templates/streamlit_app_launcher.py.jinja b/src/snowflake/cli/templates/streamlit_app_launcher.py.jinja deleted file mode 100644 index 51e016b47..000000000 --- a/src/snowflake/cli/templates/streamlit_app_launcher.py.jinja +++ /dev/null @@ -1,19 +0,0 @@ -from snowflake.snowpark.context import get_active_session -import sys,os,zipfile,importlib -import_dir = '/tmp/streamlit_app' -if not os.path.exists(import_dir): - os.makedirs(import_dir, exist_ok=True) - session = get_active_session() - session.file.get(stage_location='{{stage_name}}',target_directory=import_dir) - if {{extract_zip}}: - with zipfile.ZipFile('app.zip', 'r') as myzip: - myzip.extractall(import_dir) - sys.path.append(import_dir) - else: - sys.path.append(f"{import_dir}/app.zip") - os.chdir(import_dir) - -if "{{main_module}}" in sys.modules: - importlib.reload(sys.modules["{{main_module}}"]) -else: - importlib.import_module("{{main_module}}") diff --git a/test_external_plugins/broken_plugin/pyproject.toml b/test_external_plugins/broken_plugin/pyproject.toml index 962fe3ead..a0d1e3ccb 100644 --- a/test_external_plugins/broken_plugin/pyproject.toml +++ b/test_external_plugins/broken_plugin/pyproject.toml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta" diff --git a/test_external_plugins/broken_plugin/src/snowflakecli/test_plugins/broken_plugin/__init__.py b/test_external_plugins/broken_plugin/src/snowflakecli/test_plugins/broken_plugin/__init__.py index e69de29bb..ada0a4e13 100644 --- a/test_external_plugins/broken_plugin/src/snowflakecli/test_plugins/broken_plugin/__init__.py +++ b/test_external_plugins/broken_plugin/src/snowflakecli/test_plugins/broken_plugin/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/test_external_plugins/broken_plugin/src/snowflakecli/test_plugins/broken_plugin/commands.py b/test_external_plugins/broken_plugin/src/snowflakecli/test_plugins/broken_plugin/commands.py index 3449173e0..dfeeafa95 100644 --- a/test_external_plugins/broken_plugin/src/snowflakecli/test_plugins/broken_plugin/commands.py +++ b/test_external_plugins/broken_plugin/src/snowflakecli/test_plugins/broken_plugin/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import typer from snowflake.cli.api.commands.decorators import ( with_output, diff --git a/test_external_plugins/broken_plugin/src/snowflakecli/test_plugins/broken_plugin/plugin_spec.py b/test_external_plugins/broken_plugin/src/snowflakecli/test_plugins/broken_plugin/plugin_spec.py index bff6163c8..8142f2329 100644 --- a/test_external_plugins/broken_plugin/src/snowflakecli/test_plugins/broken_plugin/plugin_spec.py +++ b/test_external_plugins/broken_plugin/src/snowflakecli/test_plugins/broken_plugin/plugin_spec.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.plugins.command import ( CommandPath, CommandSpec, diff --git a/test_external_plugins/failing_plugin/pyproject.toml b/test_external_plugins/failing_plugin/pyproject.toml index 1cf3cb775..325f501cc 100644 --- a/test_external_plugins/failing_plugin/pyproject.toml +++ b/test_external_plugins/failing_plugin/pyproject.toml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta" diff --git a/test_external_plugins/failing_plugin/src/snowflakecli/test_plugins/failing_plugin/__init__.py b/test_external_plugins/failing_plugin/src/snowflakecli/test_plugins/failing_plugin/__init__.py index e69de29bb..ada0a4e13 100644 --- a/test_external_plugins/failing_plugin/src/snowflakecli/test_plugins/failing_plugin/__init__.py +++ b/test_external_plugins/failing_plugin/src/snowflakecli/test_plugins/failing_plugin/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/test_external_plugins/failing_plugin/src/snowflakecli/test_plugins/failing_plugin/commands.py b/test_external_plugins/failing_plugin/src/snowflakecli/test_plugins/failing_plugin/commands.py index 83be3865b..36bff6004 100644 --- a/test_external_plugins/failing_plugin/src/snowflakecli/test_plugins/failing_plugin/commands.py +++ b/test_external_plugins/failing_plugin/src/snowflakecli/test_plugins/failing_plugin/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import typer app = typer.Typer() diff --git a/test_external_plugins/failing_plugin/src/snowflakecli/test_plugins/failing_plugin/plugin_spec.py b/test_external_plugins/failing_plugin/src/snowflakecli/test_plugins/failing_plugin/plugin_spec.py index 3e7a84167..d85364b0e 100644 --- a/test_external_plugins/failing_plugin/src/snowflakecli/test_plugins/failing_plugin/plugin_spec.py +++ b/test_external_plugins/failing_plugin/src/snowflakecli/test_plugins/failing_plugin/plugin_spec.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.plugins.command import ( CommandPath, CommandSpec, diff --git a/test_external_plugins/multilingual_hello_command_group/pyproject.toml b/test_external_plugins/multilingual_hello_command_group/pyproject.toml index a20d50288..88660c6e3 100644 --- a/test_external_plugins/multilingual_hello_command_group/pyproject.toml +++ b/test_external_plugins/multilingual_hello_command_group/pyproject.toml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta" diff --git a/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/__init__.py b/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/__init__.py index e69de29bb..ada0a4e13 100644 --- a/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/__init__.py +++ b/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/commands.py b/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/commands.py index aa7435b16..573b8ca99 100644 --- a/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/commands.py +++ b/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import typer from snowflake.cli.api.commands.decorators import ( global_options_with_connection, diff --git a/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/hello_language.py b/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/hello_language.py index 56c65122f..0ba63321d 100644 --- a/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/hello_language.py +++ b/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/hello_language.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from enum import Enum diff --git a/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/manager.py b/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/manager.py index 8e7b853e7..658902393 100644 --- a/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/manager.py +++ b/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.sql_execution import SqlExecutionMixin from snowflake.connector.cursor import SnowflakeCursor from snowflakecli.test_plugins.multilingual_hello.hello_language import HelloLanguage diff --git a/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/plugin_spec.py b/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/plugin_spec.py index 98da10d9e..cf2087f2b 100644 --- a/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/plugin_spec.py +++ b/test_external_plugins/multilingual_hello_command_group/src/snowflakecli/test_plugins/multilingual_hello/plugin_spec.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.plugins.command import ( SNOWCLI_ROOT_COMMAND_PATH, CommandSpec, diff --git a/test_external_plugins/override_build_in_command/pyproject.toml b/test_external_plugins/override_build_in_command/pyproject.toml index 54d5a70ae..5bbd8b905 100644 --- a/test_external_plugins/override_build_in_command/pyproject.toml +++ b/test_external_plugins/override_build_in_command/pyproject.toml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta" diff --git a/test_external_plugins/override_build_in_command/src/snowflakecli/test_plugins/override_build_in_command/__init__.py b/test_external_plugins/override_build_in_command/src/snowflakecli/test_plugins/override_build_in_command/__init__.py index e69de29bb..ada0a4e13 100644 --- a/test_external_plugins/override_build_in_command/src/snowflakecli/test_plugins/override_build_in_command/__init__.py +++ b/test_external_plugins/override_build_in_command/src/snowflakecli/test_plugins/override_build_in_command/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/test_external_plugins/override_build_in_command/src/snowflakecli/test_plugins/override_build_in_command/commands.py b/test_external_plugins/override_build_in_command/src/snowflakecli/test_plugins/override_build_in_command/commands.py index 841f09272..e7552f9e1 100644 --- a/test_external_plugins/override_build_in_command/src/snowflakecli/test_plugins/override_build_in_command/commands.py +++ b/test_external_plugins/override_build_in_command/src/snowflakecli/test_plugins/override_build_in_command/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import typer from snowflake.cli.api.commands.decorators import ( with_output, diff --git a/test_external_plugins/override_build_in_command/src/snowflakecli/test_plugins/override_build_in_command/plugin_spec.py b/test_external_plugins/override_build_in_command/src/snowflakecli/test_plugins/override_build_in_command/plugin_spec.py index aee8469fc..fb43a6879 100644 --- a/test_external_plugins/override_build_in_command/src/snowflakecli/test_plugins/override_build_in_command/plugin_spec.py +++ b/test_external_plugins/override_build_in_command/src/snowflakecli/test_plugins/override_build_in_command/plugin_spec.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.plugins.command import ( CommandPath, CommandSpec, diff --git a/test_external_plugins/snowpark_hello_single_command/pyproject.toml b/test_external_plugins/snowpark_hello_single_command/pyproject.toml index dac8bd7e1..df24c0741 100644 --- a/test_external_plugins/snowpark_hello_single_command/pyproject.toml +++ b/test_external_plugins/snowpark_hello_single_command/pyproject.toml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [build-system] requires = ["setuptools"] build-backend = "setuptools.build_meta" diff --git a/test_external_plugins/snowpark_hello_single_command/src/snowflakecli/test_plugins/snowpark_hello/__init__.py b/test_external_plugins/snowpark_hello_single_command/src/snowflakecli/test_plugins/snowpark_hello/__init__.py index e69de29bb..ada0a4e13 100644 --- a/test_external_plugins/snowpark_hello_single_command/src/snowflakecli/test_plugins/snowpark_hello/__init__.py +++ b/test_external_plugins/snowpark_hello_single_command/src/snowflakecli/test_plugins/snowpark_hello/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/test_external_plugins/snowpark_hello_single_command/src/snowflakecli/test_plugins/snowpark_hello/commands.py b/test_external_plugins/snowpark_hello_single_command/src/snowflakecli/test_plugins/snowpark_hello/commands.py index 86ea2d456..979c15111 100644 --- a/test_external_plugins/snowpark_hello_single_command/src/snowflakecli/test_plugins/snowpark_hello/commands.py +++ b/test_external_plugins/snowpark_hello_single_command/src/snowflakecli/test_plugins/snowpark_hello/commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import typer from snowflake.cli.api.commands.decorators import ( global_options_with_connection, diff --git a/test_external_plugins/snowpark_hello_single_command/src/snowflakecli/test_plugins/snowpark_hello/manager.py b/test_external_plugins/snowpark_hello_single_command/src/snowflakecli/test_plugins/snowpark_hello/manager.py index 9d72f6ef9..086fb77d0 100644 --- a/test_external_plugins/snowpark_hello_single_command/src/snowflakecli/test_plugins/snowpark_hello/manager.py +++ b/test_external_plugins/snowpark_hello_single_command/src/snowflakecli/test_plugins/snowpark_hello/manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api import api_provider from snowflake.cli.api.sql_execution import SqlExecutionMixin from snowflake.connector.cursor import SnowflakeCursor diff --git a/test_external_plugins/snowpark_hello_single_command/src/snowflakecli/test_plugins/snowpark_hello/plugin_spec.py b/test_external_plugins/snowpark_hello_single_command/src/snowflakecli/test_plugins/snowpark_hello/plugin_spec.py index f71d46cff..81864ca4c 100644 --- a/test_external_plugins/snowpark_hello_single_command/src/snowflakecli/test_plugins/snowpark_hello/plugin_spec.py +++ b/test_external_plugins/snowpark_hello_single_command/src/snowflakecli/test_plugins/snowpark_hello/plugin_spec.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.api.plugins.command import ( CommandPath, CommandSpec, diff --git a/tests/__init__.py b/tests/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/api/__init__.py b/tests/api/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests/api/__init__.py +++ b/tests/api/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/api/commands/__init__.py b/tests/api/commands/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests/api/commands/__init__.py +++ b/tests/api/commands/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/api/commands/test_flags.py b/tests/api/commands/test_flags.py index de49d0f7c..6c21aa227 100644 --- a/tests/api/commands/test_flags.py +++ b/tests/api/commands/test_flags.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from unittest import mock from unittest.mock import Mock, create_autospec, patch diff --git a/tests/api/commands/test_snow_typer.py b/tests/api/commands/test_snow_typer.py index 2083b4f1c..de53d379f 100644 --- a/tests/api/commands/test_snow_typer.py +++ b/tests/api/commands/test_snow_typer.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from functools import partial from unittest import mock from unittest.mock import MagicMock diff --git a/tests/api/console/__init__.py b/tests/api/console/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests/api/console/__init__.py +++ b/tests/api/console/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/api/console/test_cli_console_output.py b/tests/api/console/test_cli_console_output.py index f54a7a78c..dc332c893 100644 --- a/tests/api/console/test_cli_console_output.py +++ b/tests/api/console/test_cli_console_output.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import Generator diff --git a/tests/api/console/test_console_abc.py b/tests/api/console/test_console_abc.py index 15ea388f5..92d27c079 100644 --- a/tests/api/console/test_console_abc.py +++ b/tests/api/console/test_console_abc.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from contextlib import contextmanager from snowflake.cli.api.console.abc import AbstractConsole diff --git a/tests/api/console/test_intermediate_output.py b/tests/api/console/test_intermediate_output.py index e4bdc8061..97f910f91 100644 --- a/tests/api/console/test_intermediate_output.py +++ b/tests/api/console/test_intermediate_output.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pytest diff --git a/tests/api/test_feature_flags.py b/tests/api/test_feature_flags.py index 78349b888..0b41a3626 100644 --- a/tests/api/test_feature_flags.py +++ b/tests/api/test_feature_flags.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from unittest import mock import pytest diff --git a/tests/api/test_fqn.py b/tests/api/test_fqn.py index d65ef85b1..98b031607 100644 --- a/tests/api/test_fqn.py +++ b/tests/api/test_fqn.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from unittest import mock from unittest.mock import MagicMock diff --git a/tests/api/test_secure_path.py b/tests/api/test_secure_path.py index f68d6f63d..7761a37ea 100644 --- a/tests/api/test_secure_path.py +++ b/tests/api/test_secure_path.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os import re import shutil diff --git a/tests/api/utils/test_naming_utils.py b/tests/api/utils/test_naming_utils.py index 11d9d1cf3..dfd271834 100644 --- a/tests/api/utils/test_naming_utils.py +++ b/tests/api/utils/test_naming_utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pytest from snowflake.cli.api.identifiers import FQN diff --git a/tests/api/utils/test_rendering.py b/tests/api/utils/test_rendering.py index ab9b242c0..f49eeb771 100644 --- a/tests/api/utils/test_rendering.py +++ b/tests/api/utils/test_rendering.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os from pathlib import Path from tempfile import NamedTemporaryFile diff --git a/tests/app/test_telemetry.py b/tests/app/test_telemetry.py index 1594f2651..0d8b4a555 100644 --- a/tests/app/test_telemetry.py +++ b/tests/app/test_telemetry.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os from unittest import mock diff --git a/tests/conftest.py b/tests/conftest.py index b506c41f1..49a78fcb1 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/tests/cortex/test_cortex_commands.py b/tests/cortex/test_cortex_commands.py index 11d056c42..173669fce 100644 --- a/tests/cortex/test_cortex_commands.py +++ b/tests/cortex/test_cortex_commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import re diff --git a/tests/empty_config.toml b/tests/empty_config.toml index e69de29bb..ada0a4e13 100644 --- a/tests/empty_config.toml +++ b/tests/empty_config.toml @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/git/test_git_commands.py b/tests/git/test_git_commands.py index b94d19fb8..71338137f 100644 --- a/tests/git/test_git_commands.py +++ b/tests/git/test_git_commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from pathlib import Path from textwrap import dedent from unittest import mock diff --git a/tests/nativeapp/__init__.py b/tests/nativeapp/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests/nativeapp/__init__.py +++ b/tests/nativeapp/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/nativeapp/codegen/snowpark/test_extension_function_utils.py b/tests/nativeapp/codegen/snowpark/test_extension_function_utils.py index 070b7b8bc..96ef3ae1a 100644 --- a/tests/nativeapp/codegen/snowpark/test_extension_function_utils.py +++ b/tests/nativeapp/codegen/snowpark/test_extension_function_utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from textwrap import dedent import pytest diff --git a/tests/nativeapp/codegen/snowpark/test_python_processor.py b/tests/nativeapp/codegen/snowpark/test_python_processor.py index 1ba49db37..53ad0d8e0 100644 --- a/tests/nativeapp/codegen/snowpark/test_python_processor.py +++ b/tests/nativeapp/codegen/snowpark/test_python_processor.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import copy diff --git a/tests/nativeapp/codegen/test_compiler.py b/tests/nativeapp/codegen/test_compiler.py index 7c3209789..23b8814dd 100644 --- a/tests/nativeapp/codegen/test_compiler.py +++ b/tests/nativeapp/codegen/test_compiler.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from pathlib import Path import pytest diff --git a/tests/nativeapp/codegen/test_sandbox.py b/tests/nativeapp/codegen/test_sandbox.py index 56ecad5eb..839d19709 100644 --- a/tests/nativeapp/codegen/test_sandbox.py +++ b/tests/nativeapp/codegen/test_sandbox.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import subprocess from pathlib import Path from unittest import mock diff --git a/tests/nativeapp/fixtures.py b/tests/nativeapp/fixtures.py index c2bbb6d2c..1c1b9a2c9 100644 --- a/tests/nativeapp/fixtures.py +++ b/tests/nativeapp/fixtures.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import unittest.mock as mock import pytest diff --git a/tests/nativeapp/patch_utils.py b/tests/nativeapp/patch_utils.py index f6ab38beb..542d86c07 100644 --- a/tests/nativeapp/patch_utils.py +++ b/tests/nativeapp/patch_utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from unittest import mock from unittest.mock import PropertyMock diff --git a/tests/nativeapp/test_annotation_processor_config.py b/tests/nativeapp/test_annotation_processor_config.py index 2ef81c5ba..66a7f9eb3 100644 --- a/tests/nativeapp/test_annotation_processor_config.py +++ b/tests/nativeapp/test_annotation_processor_config.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pytest from snowflake.cli.api.project.definition import ( load_project_definition, diff --git a/tests/nativeapp/test_artifacts.py b/tests/nativeapp/test_artifacts.py index 5b56af650..51906fcee 100644 --- a/tests/nativeapp/test_artifacts.py +++ b/tests/nativeapp/test_artifacts.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import os diff --git a/tests/nativeapp/test_commands.py b/tests/nativeapp/test_commands.py index da5ffe2b0..756fd9123 100644 --- a/tests/nativeapp/test_commands.py +++ b/tests/nativeapp/test_commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from unittest import mock import pytest diff --git a/tests/nativeapp/test_feature_flags.py b/tests/nativeapp/test_feature_flags.py index c264de1d7..29a83f11d 100644 --- a/tests/nativeapp/test_feature_flags.py +++ b/tests/nativeapp/test_feature_flags.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from unittest import mock import pytest diff --git a/tests/nativeapp/test_init.py b/tests/nativeapp/test_init.py index 8d901f405..ba62222bf 100644 --- a/tests/nativeapp/test_init.py +++ b/tests/nativeapp/test_init.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from pathlib import Path from textwrap import dedent from unittest import mock diff --git a/tests/nativeapp/test_manager.py b/tests/nativeapp/test_manager.py index 2c30d3894..b8cc38bfd 100644 --- a/tests/nativeapp/test_manager.py +++ b/tests/nativeapp/test_manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os from pathlib import Path from textwrap import dedent diff --git a/tests/nativeapp/test_package_scripts.py b/tests/nativeapp/test_package_scripts.py index 77af1038a..2e3a35090 100644 --- a/tests/nativeapp/test_package_scripts.py +++ b/tests/nativeapp/test_package_scripts.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from pathlib import Path from textwrap import dedent from unittest import mock diff --git a/tests/nativeapp/test_run_processor.py b/tests/nativeapp/test_run_processor.py index 8cf1b2a55..e02088439 100644 --- a/tests/nativeapp/test_run_processor.py +++ b/tests/nativeapp/test_run_processor.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os from textwrap import dedent from unittest import mock diff --git a/tests/nativeapp/test_teardown_processor.py b/tests/nativeapp/test_teardown_processor.py index 559a1f588..2d105b0be 100644 --- a/tests/nativeapp/test_teardown_processor.py +++ b/tests/nativeapp/test_teardown_processor.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os from unittest import mock diff --git a/tests/nativeapp/test_utils.py b/tests/nativeapp/test_utils.py index d69cb25ef..e3181e991 100644 --- a/tests/nativeapp/test_utils.py +++ b/tests/nativeapp/test_utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from textwrap import dedent import pytest diff --git a/tests/nativeapp/test_version_create_processor.py b/tests/nativeapp/test_version_create_processor.py index 65c21cfe0..4bacfd8fb 100644 --- a/tests/nativeapp/test_version_create_processor.py +++ b/tests/nativeapp/test_version_create_processor.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os from textwrap import dedent from unittest import mock diff --git a/tests/nativeapp/test_version_drop_processor.py b/tests/nativeapp/test_version_drop_processor.py index 9d5519190..7762e33a1 100644 --- a/tests/nativeapp/test_version_drop_processor.py +++ b/tests/nativeapp/test_version_drop_processor.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os from unittest import mock diff --git a/tests/nativeapp/utils.py b/tests/nativeapp/utils.py index c16bb38a4..14ffc5d3e 100644 --- a/tests/nativeapp/utils.py +++ b/tests/nativeapp/utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import os diff --git a/tests/notebook/__init__.py b/tests/notebook/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests/notebook/__init__.py +++ b/tests/notebook/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/notebook/test_notebook_commands.py b/tests/notebook/test_notebook_commands.py index f1b7b7ace..f8f1c671d 100644 --- a/tests/notebook/test_notebook_commands.py +++ b/tests/notebook/test_notebook_commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from unittest import mock import typer diff --git a/tests/notebook/test_notebook_manager.py b/tests/notebook/test_notebook_manager.py index e86a199e9..f0eaf3cd8 100644 --- a/tests/notebook/test_notebook_manager.py +++ b/tests/notebook/test_notebook_manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from textwrap import dedent from unittest import mock from unittest.mock import MagicMock, PropertyMock diff --git a/tests/object/__init__.py b/tests/object/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests/object/__init__.py +++ b/tests/object/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/object/test_common.py b/tests/object/test_common.py index 5afd67e85..7c5c32fbf 100644 --- a/tests/object/test_common.py +++ b/tests/object/test_common.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import Tuple diff --git a/tests/object/test_object.py b/tests/object/test_object.py index 51cadfbce..96caf827c 100644 --- a/tests/object/test_object.py +++ b/tests/object/test_object.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from unittest import mock import pytest diff --git a/tests/object/test_stage.py b/tests/object/test_stage.py index 56833280d..783f03dd1 100644 --- a/tests/object/test_stage.py +++ b/tests/object/test_stage.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pytest diff --git a/tests/output/__init__.py b/tests/output/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests/output/__init__.py +++ b/tests/output/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/output/test_format_silent_enforcement.py b/tests/output/test_format_silent_enforcement.py index 5322dbc97..36ee9aebe 100644 --- a/tests/output/test_format_silent_enforcement.py +++ b/tests/output/test_format_silent_enforcement.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from textwrap import dedent import pytest diff --git a/tests/output/test_printing.py b/tests/output/test_printing.py index 36d96b35b..29cc9d921 100644 --- a/tests/output/test_printing.py +++ b/tests/output/test_printing.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import json from datetime import datetime from textwrap import dedent diff --git a/tests/output/test_silent_output.py b/tests/output/test_silent_output.py index 5cc987833..e654bf541 100644 --- a/tests/output/test_silent_output.py +++ b/tests/output/test_silent_output.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import pytest diff --git a/tests/project/__init__.py b/tests/project/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests/project/__init__.py +++ b/tests/project/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/project/fixtures.py b/tests/project/fixtures.py index d0487dce5..963ecc9c2 100644 --- a/tests/project/fixtures.py +++ b/tests/project/fixtures.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import shutil diff --git a/tests/project/test_config.py b/tests/project/test_config.py index 79a43748d..44419d37c 100644 --- a/tests/project/test_config.py +++ b/tests/project/test_config.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from pathlib import Path diff --git a/tests/project/test_definition_manager.py b/tests/project/test_definition_manager.py index c6947320f..18099401b 100644 --- a/tests/project/test_definition_manager.py +++ b/tests/project/test_definition_manager.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from pathlib import Path from unittest import TestCase, mock diff --git a/tests/project/test_project_schemas.py b/tests/project/test_project_schemas.py index 29e6c6b90..0af0dedb4 100644 --- a/tests/project/test_project_schemas.py +++ b/tests/project/test_project_schemas.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pytest from pydantic import ValidationError from snowflake.cli.api.project.errors import SchemaValidationError diff --git a/tests/project/test_util.py b/tests/project/test_util.py index ec5c9bd3b..6849b7998 100644 --- a/tests/project/test_util.py +++ b/tests/project/test_util.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from itertools import permutations import pytest diff --git a/tests/snowpark/__init__.py b/tests/snowpark/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests/snowpark/__init__.py +++ b/tests/snowpark/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/snowpark/mocks.py b/tests/snowpark/mocks.py index eacb3b32e..43f49e5a0 100644 --- a/tests/snowpark/mocks.py +++ b/tests/snowpark/mocks.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import json from unittest import mock diff --git a/tests/snowpark/test_anaconda.py b/tests/snowpark/test_anaconda.py index 4e8546440..b14f7442d 100644 --- a/tests/snowpark/test_anaconda.py +++ b/tests/snowpark/test_anaconda.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import json from unittest import mock from unittest.mock import MagicMock, patch diff --git a/tests/snowpark/test_build.py b/tests/snowpark/test_build.py index e9b14f19f..ef6c9f7d7 100644 --- a/tests/snowpark/test_build.py +++ b/tests/snowpark/test_build.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from unittest.mock import patch import pytest diff --git a/tests/snowpark/test_common.py b/tests/snowpark/test_common.py index 9b08382a1..c0e4c06b6 100644 --- a/tests/snowpark/test_common.py +++ b/tests/snowpark/test_common.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import Tuple diff --git a/tests/snowpark/test_function.py b/tests/snowpark/test_function.py index c98fcbed7..0d094fba0 100644 --- a/tests/snowpark/test_function.py +++ b/tests/snowpark/test_function.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import json from pathlib import Path from textwrap import dedent diff --git a/tests/snowpark/test_models.py b/tests/snowpark/test_models.py index fa4f82d9a..b48a3c5be 100644 --- a/tests/snowpark/test_models.py +++ b/tests/snowpark/test_models.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pytest from snowflake.cli.plugins.snowpark.models import Requirement, get_package_name diff --git a/tests/snowpark/test_package.py b/tests/snowpark/test_package.py index 3cb7c8804..14080ff86 100644 --- a/tests/snowpark/test_package.py +++ b/tests/snowpark/test_package.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import logging import os from unittest import mock diff --git a/tests/snowpark/test_procedure.py b/tests/snowpark/test_procedure.py index 9d962d4fe..1fbd3a226 100644 --- a/tests/snowpark/test_procedure.py +++ b/tests/snowpark/test_procedure.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import json from pathlib import Path from textwrap import dedent diff --git a/tests/spcs/__init__.py b/tests/spcs/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests/spcs/__init__.py +++ b/tests/spcs/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/spcs/test_common.py b/tests/spcs/test_common.py index 9bdfb718f..96edced62 100644 --- a/tests/spcs/test_common.py +++ b/tests/spcs/test_common.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from unittest.mock import Mock import pytest diff --git a/tests/spcs/test_compute_pool.py b/tests/spcs/test_compute_pool.py index c3ef2d1a8..382393c87 100644 --- a/tests/spcs/test_compute_pool.py +++ b/tests/spcs/test_compute_pool.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import json from unittest.mock import Mock, patch diff --git a/tests/spcs/test_image_repository.py b/tests/spcs/test_image_repository.py index 3eb019a2b..78e2b6756 100644 --- a/tests/spcs/test_image_repository.py +++ b/tests/spcs/test_image_repository.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import json from typing import Dict from unittest import mock diff --git a/tests/spcs/test_jobs.py b/tests/spcs/test_jobs.py index 4658a0397..77d1c34d0 100644 --- a/tests/spcs/test_jobs.py +++ b/tests/spcs/test_jobs.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os from tempfile import TemporaryDirectory from unittest import mock diff --git a/tests/spcs/test_registry.py b/tests/spcs/test_registry.py index 2cac7e4d1..9fa582496 100644 --- a/tests/spcs/test_registry.py +++ b/tests/spcs/test_registry.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import json from subprocess import PIPE, CalledProcessError from unittest import mock diff --git a/tests/spcs/test_services.py b/tests/spcs/test_services.py index ce2a48bca..44b4ce71a 100644 --- a/tests/spcs/test_services.py +++ b/tests/spcs/test_services.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import json from pathlib import Path from textwrap import dedent diff --git a/tests/stage/__init__.py b/tests/stage/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests/stage/__init__.py +++ b/tests/stage/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/stage/test_diff.py b/tests/stage/test_diff.py index ce3d8e0d7..df85d8970 100644 --- a/tests/stage/test_diff.py +++ b/tests/stage/test_diff.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import hashlib diff --git a/tests/stage/test_stage.py b/tests/stage/test_stage.py index 417b83167..c986aac0c 100644 --- a/tests/stage/test_stage.py +++ b/tests/stage/test_stage.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from pathlib import Path from tempfile import TemporaryDirectory from unittest import mock diff --git a/tests/streamlit/test_commands.py b/tests/streamlit/test_commands.py index 0bc1e3781..c780a608c 100644 --- a/tests/streamlit/test_commands.py +++ b/tests/streamlit/test_commands.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import shutil from textwrap import dedent from unittest import mock diff --git a/tests/streamlit/test_config.py b/tests/streamlit/test_config.py index 86d51c1b7..37401eae3 100644 --- a/tests/streamlit/test_config.py +++ b/tests/streamlit/test_config.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from pathlib import Path import pytest diff --git a/tests/test.toml b/tests/test.toml index 8a89d8324..de49ce1a2 100644 --- a/tests/test.toml +++ b/tests/test.toml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [connections] [connections.full] account = "dev_account" diff --git a/tests/test_cli.py b/tests/test_cli.py index baa404bc2..14cb2f336 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pytest diff --git a/tests/test_command_registration.py b/tests/test_command_registration.py index b8eed15b4..327cd714a 100644 --- a/tests/test_command_registration.py +++ b/tests/test_command_registration.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from unittest import mock from snowflake.cli.api.plugins.command import ( diff --git a/tests/test_common_decorators.py b/tests/test_common_decorators.py index 93eea8105..cd364f4fe 100644 --- a/tests/test_common_decorators.py +++ b/tests/test_common_decorators.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import typer from snowflake.cli.api.commands.decorators import ( global_options, diff --git a/tests/test_common_global_context.py b/tests/test_common_global_context.py index f13e95d67..011c7f9dc 100644 --- a/tests/test_common_global_context.py +++ b/tests/test_common_global_context.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from unittest import mock from unittest.mock import call diff --git a/tests/test_config.py b/tests/test_config.py index 10c595536..b0d5405ca 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os from pathlib import Path from tempfile import NamedTemporaryFile, TemporaryDirectory diff --git a/tests/test_connection.py b/tests/test_connection.py index befcacc8c..cf52e9536 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import json import os from pathlib import Path diff --git a/tests/test_data/__init__.py b/tests/test_data/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests/test_data/__init__.py +++ b/tests/test_data/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/test_data/projects/deploy_root_with_incorrect_setup_script/setup_script.sql b/tests/test_data/projects/deploy_root_with_incorrect_setup_script/setup_script.sql index de24e8c57..bb73471eb 100644 --- a/tests/test_data/projects/deploy_root_with_incorrect_setup_script/setup_script.sql +++ b/tests/test_data/projects/deploy_root_with_incorrect_setup_script/setup_script.sql @@ -1 +1,17 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + # stuff diff --git a/tests/test_data/projects/example_streamlit/pages/my_page.py b/tests/test_data/projects/example_streamlit/pages/my_page.py index bc3ecbccb..9a064bd3a 100644 --- a/tests/test_data/projects/example_streamlit/pages/my_page.py +++ b/tests/test_data/projects/example_streamlit/pages/my_page.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import streamlit as st st.title("Example page") diff --git a/tests/test_data/projects/example_streamlit/streamlit_app.py b/tests/test_data/projects/example_streamlit/streamlit_app.py index b699538d7..bec07b152 100644 --- a/tests/test_data/projects/example_streamlit/streamlit_app.py +++ b/tests/test_data/projects/example_streamlit/streamlit_app.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import streamlit as st st.title("Example streamlit app") diff --git a/tests/test_data/projects/example_streamlit_no_defaults/main.py b/tests/test_data/projects/example_streamlit_no_defaults/main.py index b699538d7..bec07b152 100644 --- a/tests/test_data/projects/example_streamlit_no_defaults/main.py +++ b/tests/test_data/projects/example_streamlit_no_defaults/main.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import streamlit as st st.title("Example streamlit app") diff --git a/tests/test_data/projects/example_streamlit_no_defaults/streamlit_pages/first_page.py b/tests/test_data/projects/example_streamlit_no_defaults/streamlit_pages/first_page.py index bc3ecbccb..9a064bd3a 100644 --- a/tests/test_data/projects/example_streamlit_no_defaults/streamlit_pages/first_page.py +++ b/tests/test_data/projects/example_streamlit_no_defaults/streamlit_pages/first_page.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import streamlit as st st.title("Example page") diff --git a/tests/test_data/projects/example_streamlit_no_stage/pages/my_page.py b/tests/test_data/projects/example_streamlit_no_stage/pages/my_page.py index bc3ecbccb..9a064bd3a 100644 --- a/tests/test_data/projects/example_streamlit_no_stage/pages/my_page.py +++ b/tests/test_data/projects/example_streamlit_no_stage/pages/my_page.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import streamlit as st st.title("Example page") diff --git a/tests/test_data/projects/example_streamlit_no_stage/streamlit_app.py b/tests/test_data/projects/example_streamlit_no_stage/streamlit_app.py index b699538d7..bec07b152 100644 --- a/tests/test_data/projects/example_streamlit_no_stage/streamlit_app.py +++ b/tests/test_data/projects/example_streamlit_no_stage/streamlit_app.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import streamlit as st st.title("Example streamlit app") diff --git a/tests/test_data/projects/integration/app/README.md b/tests/test_data/projects/integration/app/README.md index f66bf75c9..685ff896b 100644 --- a/tests/test_data/projects/integration/app/README.md +++ b/tests/test_data/projects/integration/app/README.md @@ -1,3 +1,19 @@ + + # README This directory contains an extremely simple application that is used for diff --git a/tests/test_data/projects/integration/app/setup.sql b/tests/test_data/projects/integration/app/setup.sql index 069e508c1..cf844826c 100644 --- a/tests/test_data/projects/integration/app/setup.sql +++ b/tests/test_data/projects/integration/app/setup.sql @@ -1,3 +1,19 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + create application role app_public; create or alter versioned schema core; diff --git a/tests/test_data/projects/integration/package/001-shared.sql b/tests/test_data/projects/integration/package/001-shared.sql index 5709c5d68..d7b8d6c98 100644 --- a/tests/test_data/projects/integration/package/001-shared.sql +++ b/tests/test_data/projects/integration/package/001-shared.sql @@ -1,3 +1,19 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + -- package script (1/2) create schema if not exists {{ package_name }}.my_shared_content; diff --git a/tests/test_data/projects/integration/package/002-shared.sql b/tests/test_data/projects/integration/package/002-shared.sql index 6db8ddf20..0640b7bf9 100644 --- a/tests/test_data/projects/integration/package/002-shared.sql +++ b/tests/test_data/projects/integration/package/002-shared.sql @@ -1,3 +1,19 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + -- package script (2/2) create or replace table {{ package_name }}.my_shared_content.shared_table ( diff --git a/tests/test_data/projects/integration_external/app/README.md b/tests/test_data/projects/integration_external/app/README.md index d42c152f1..8e33f5890 100644 --- a/tests/test_data/projects/integration_external/app/README.md +++ b/tests/test_data/projects/integration_external/app/README.md @@ -1,3 +1,19 @@ + + # README A minimal directory structure used as a native apps project to create a native application for integration testing as part of the Snowflake CLI's integration test suite. diff --git a/tests/test_data/projects/integration_external/app/setup.sql b/tests/test_data/projects/integration_external/app/setup.sql index 069e508c1..cf844826c 100644 --- a/tests/test_data/projects/integration_external/app/setup.sql +++ b/tests/test_data/projects/integration_external/app/setup.sql @@ -1,3 +1,19 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + create application role app_public; create or alter versioned schema core; diff --git a/tests/test_data/projects/integration_external/package/001-shared.sql b/tests/test_data/projects/integration_external/package/001-shared.sql index 5709c5d68..d7b8d6c98 100644 --- a/tests/test_data/projects/integration_external/package/001-shared.sql +++ b/tests/test_data/projects/integration_external/package/001-shared.sql @@ -1,3 +1,19 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + -- package script (1/2) create schema if not exists {{ package_name }}.my_shared_content; diff --git a/tests/test_data/projects/integration_external/package/002-shared.sql b/tests/test_data/projects/integration_external/package/002-shared.sql index 6db8ddf20..0640b7bf9 100644 --- a/tests/test_data/projects/integration_external/package/002-shared.sql +++ b/tests/test_data/projects/integration_external/package/002-shared.sql @@ -1,3 +1,19 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + -- package script (2/2) create or replace table {{ package_name }}.my_shared_content.shared_table ( diff --git a/tests/test_data/projects/napp_project_1/001-shared.sql b/tests/test_data/projects/napp_project_1/001-shared.sql index 5709c5d68..d7b8d6c98 100644 --- a/tests/test_data/projects/napp_project_1/001-shared.sql +++ b/tests/test_data/projects/napp_project_1/001-shared.sql @@ -1,3 +1,19 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + -- package script (1/2) create schema if not exists {{ package_name }}.my_shared_content; diff --git a/tests/test_data/projects/napp_project_1/002-shared.sql b/tests/test_data/projects/napp_project_1/002-shared.sql index 59c1e8e36..c7ec9589b 100644 --- a/tests/test_data/projects/napp_project_1/002-shared.sql +++ b/tests/test_data/projects/napp_project_1/002-shared.sql @@ -1,3 +1,19 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + -- package script (2/2) create or replace table {{ package_name }}.my_shared_content.shared_table ( diff --git a/tests/test_data/projects/napp_project_1/app/README.md b/tests/test_data/projects/napp_project_1/app/README.md index 3f08dce5d..44fd0ea8d 100644 --- a/tests/test_data/projects/napp_project_1/app/README.md +++ b/tests/test_data/projects/napp_project_1/app/README.md @@ -1 +1,17 @@ + + app/README.md diff --git a/tests/test_data/projects/napp_project_1/app/streamlit/config.py b/tests/test_data/projects/napp_project_1/app/streamlit/config.py index 83e8ba967..cb0e1c16d 100644 --- a/tests/test_data/projects/napp_project_1/app/streamlit/config.py +++ b/tests/test_data/projects/napp_project_1/app/streamlit/config.py @@ -1 +1,15 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # config.py diff --git a/tests/test_data/projects/napp_project_1/app/streamlit/main.py b/tests/test_data/projects/napp_project_1/app/streamlit/main.py index d03e8126a..476ec41d1 100644 --- a/tests/test_data/projects/napp_project_1/app/streamlit/main.py +++ b/tests/test_data/projects/napp_project_1/app/streamlit/main.py @@ -1 +1,15 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # main.py diff --git a/tests/test_data/projects/napp_project_1/setup.sql b/tests/test_data/projects/napp_project_1/setup.sql index 97038a7d2..336aea590 100644 --- a/tests/test_data/projects/napp_project_1/setup.sql +++ b/tests/test_data/projects/napp_project_1/setup.sql @@ -1 +1,17 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + create versioned schema myschema; diff --git a/tests/test_data/projects/napp_project_with_pkg_warehouse/001-shared.sql b/tests/test_data/projects/napp_project_with_pkg_warehouse/001-shared.sql index 5709c5d68..d7b8d6c98 100644 --- a/tests/test_data/projects/napp_project_with_pkg_warehouse/001-shared.sql +++ b/tests/test_data/projects/napp_project_with_pkg_warehouse/001-shared.sql @@ -1,3 +1,19 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + -- package script (1/2) create schema if not exists {{ package_name }}.my_shared_content; diff --git a/tests/test_data/projects/napp_project_with_pkg_warehouse/002-shared.sql b/tests/test_data/projects/napp_project_with_pkg_warehouse/002-shared.sql index 59c1e8e36..c7ec9589b 100644 --- a/tests/test_data/projects/napp_project_with_pkg_warehouse/002-shared.sql +++ b/tests/test_data/projects/napp_project_with_pkg_warehouse/002-shared.sql @@ -1,3 +1,19 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + -- package script (2/2) create or replace table {{ package_name }}.my_shared_content.shared_table ( diff --git a/tests/test_data/projects/napp_project_with_pkg_warehouse/app/README.md b/tests/test_data/projects/napp_project_with_pkg_warehouse/app/README.md index 3f08dce5d..44fd0ea8d 100644 --- a/tests/test_data/projects/napp_project_with_pkg_warehouse/app/README.md +++ b/tests/test_data/projects/napp_project_with_pkg_warehouse/app/README.md @@ -1 +1,17 @@ + + app/README.md diff --git a/tests/test_data/projects/napp_project_with_pkg_warehouse/app/streamlit/config.py b/tests/test_data/projects/napp_project_with_pkg_warehouse/app/streamlit/config.py index 83e8ba967..cb0e1c16d 100644 --- a/tests/test_data/projects/napp_project_with_pkg_warehouse/app/streamlit/config.py +++ b/tests/test_data/projects/napp_project_with_pkg_warehouse/app/streamlit/config.py @@ -1 +1,15 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # config.py diff --git a/tests/test_data/projects/napp_project_with_pkg_warehouse/app/streamlit/main.py b/tests/test_data/projects/napp_project_with_pkg_warehouse/app/streamlit/main.py index d03e8126a..476ec41d1 100644 --- a/tests/test_data/projects/napp_project_with_pkg_warehouse/app/streamlit/main.py +++ b/tests/test_data/projects/napp_project_with_pkg_warehouse/app/streamlit/main.py @@ -1 +1,15 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # main.py diff --git a/tests/test_data/projects/napp_project_with_pkg_warehouse/setup.sql b/tests/test_data/projects/napp_project_with_pkg_warehouse/setup.sql index 97038a7d2..336aea590 100644 --- a/tests/test_data/projects/napp_project_with_pkg_warehouse/setup.sql +++ b/tests/test_data/projects/napp_project_with_pkg_warehouse/setup.sql @@ -1 +1,17 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + create versioned schema myschema; diff --git a/tests/test_data/projects/snowpark_function_external_access/app.py b/tests/test_data/projects/snowpark_function_external_access/app.py index 37c1ed1f9..bac11ab12 100644 --- a/tests/test_data/projects/snowpark_function_external_access/app.py +++ b/tests/test_data/projects/snowpark_function_external_access/app.py @@ -1,2 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + def hello(name: str) -> str: return f"Hello {name}!" diff --git a/tests/test_data/projects/snowpark_function_fully_qualified_name/app/app.py b/tests/test_data/projects/snowpark_function_fully_qualified_name/app/app.py index b977042f0..1f9c894de 100644 --- a/tests/test_data/projects/snowpark_function_fully_qualified_name/app/app.py +++ b/tests/test_data/projects/snowpark_function_fully_qualified_name/app/app.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations diff --git a/tests/test_data/projects/snowpark_functions/app.py b/tests/test_data/projects/snowpark_functions/app.py index 0c336bf90..31291d512 100644 --- a/tests/test_data/projects/snowpark_functions/app.py +++ b/tests/test_data/projects/snowpark_functions/app.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import sys diff --git a/tests/test_data/projects/snowpark_procedure_external_access/app.py b/tests/test_data/projects/snowpark_procedure_external_access/app.py index cf8e7ed1a..fdfe1095f 100644 --- a/tests/test_data/projects/snowpark_procedure_external_access/app.py +++ b/tests/test_data/projects/snowpark_procedure_external_access/app.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.snowpark import Session diff --git a/tests/test_data/projects/snowpark_procedure_fully_qualified_name/app/app.py b/tests/test_data/projects/snowpark_procedure_fully_qualified_name/app/app.py index 8f932a90e..41aad276e 100644 --- a/tests/test_data/projects/snowpark_procedure_fully_qualified_name/app/app.py +++ b/tests/test_data/projects/snowpark_procedure_fully_qualified_name/app/app.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from snowflake.snowpark import Session diff --git a/tests/test_data/projects/snowpark_procedures/app.py b/tests/test_data/projects/snowpark_procedures/app.py index 602af440e..a9103f22f 100644 --- a/tests/test_data/projects/snowpark_procedures/app.py +++ b/tests/test_data/projects/snowpark_procedures/app.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import sys diff --git a/tests/test_data/projects/snowpark_procedures_coverage/app.py b/tests/test_data/projects/snowpark_procedures_coverage/app.py index 602af440e..a9103f22f 100644 --- a/tests/test_data/projects/snowpark_procedures_coverage/app.py +++ b/tests/test_data/projects/snowpark_procedures_coverage/app.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import sys diff --git a/tests/test_data/projects/streamlit_full_definition/pages/my_page.py b/tests/test_data/projects/streamlit_full_definition/pages/my_page.py index bc3ecbccb..9a064bd3a 100644 --- a/tests/test_data/projects/streamlit_full_definition/pages/my_page.py +++ b/tests/test_data/projects/streamlit_full_definition/pages/my_page.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import streamlit as st st.title("Example page") diff --git a/tests/test_data/projects/streamlit_full_definition/streamlit_app.py b/tests/test_data/projects/streamlit_full_definition/streamlit_app.py index b699538d7..bec07b152 100644 --- a/tests/test_data/projects/streamlit_full_definition/streamlit_app.py +++ b/tests/test_data/projects/streamlit_full_definition/streamlit_app.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import streamlit as st st.title("Example streamlit app") diff --git a/tests/test_data/projects/streamlit_full_definition/utils/utils.py b/tests/test_data/projects/streamlit_full_definition/utils/utils.py index e69de29bb..ada0a4e13 100644 --- a/tests/test_data/projects/streamlit_full_definition/utils/utils.py +++ b/tests/test_data/projects/streamlit_full_definition/utils/utils.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/test_data/test_data.py b/tests/test_data/test_data.py index 678199b68..d061e7efd 100644 --- a/tests/test_data/test_data.py +++ b/tests/test_data/test_data.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from snowflake.cli.plugins.snowpark.models import Requirement requirements = [ diff --git a/tests/test_experimental_behaviour.py b/tests/test_experimental_behaviour.py index bc37a7d8f..68dee0627 100644 --- a/tests/test_experimental_behaviour.py +++ b/tests/test_experimental_behaviour.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import json from unittest import mock diff --git a/tests/test_help_messages.py b/tests/test_help_messages.py index f63d05e02..b056a9ec0 100644 --- a/tests/test_help_messages.py +++ b/tests/test_help_messages.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from typing import List diff --git a/tests/test_loaded_modules.py b/tests/test_loaded_modules.py index 29afdd320..d85ba7abc 100644 --- a/tests/test_loaded_modules.py +++ b/tests/test_loaded_modules.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import sys import pytest diff --git a/tests/test_logs.py b/tests/test_logs.py index 56c231caa..8f88d94a9 100644 --- a/tests/test_logs.py +++ b/tests/test_logs.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import logging diff --git a/tests/test_main.py b/tests/test_main.py index ce551d3e1..0fc0e60ca 100644 --- a/tests/test_main.py +++ b/tests/test_main.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """These tests verify that the CLI runs work as expected.""" from __future__ import annotations diff --git a/tests/test_performance.py b/tests/test_performance.py index 1573d6557..cf066bdea 100644 --- a/tests/test_performance.py +++ b/tests/test_performance.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import subprocess from timeit import default_timer as timer diff --git a/tests/test_project_initialisation.py b/tests/test_project_initialisation.py index 267aaf126..27138c14a 100644 --- a/tests/test_project_initialisation.py +++ b/tests/test_project_initialisation.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from pathlib import Path from tempfile import TemporaryDirectory from unittest import mock diff --git a/tests/test_snow_connector.py b/tests/test_snow_connector.py index 601036cbb..1f5a34474 100644 --- a/tests/test_snow_connector.py +++ b/tests/test_snow_connector.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os from unittest import mock diff --git a/tests/test_sql.py b/tests/test_sql.py index f7bc4dcac..6e42c526b 100644 --- a/tests/test_sql.py +++ b/tests/test_sql.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from pathlib import Path from tempfile import NamedTemporaryFile, TemporaryDirectory from unittest import mock diff --git a/tests/test_utils.py b/tests/test_utils.py index a109f51d5..9c166adfe 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import logging import os from pathlib import Path diff --git a/tests/test_zipper.py b/tests/test_zipper.py index c43be8264..59df4b313 100644 --- a/tests/test_zipper.py +++ b/tests/test_zipper.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os from pathlib import Path from zipfile import ZipFile diff --git a/tests/testing_utils/__init__.py b/tests/testing_utils/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests/testing_utils/__init__.py +++ b/tests/testing_utils/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests/testing_utils/conversion.py b/tests/testing_utils/conversion.py index 0de794153..93e81196f 100644 --- a/tests/testing_utils/conversion.py +++ b/tests/testing_utils/conversion.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import json diff --git a/tests/testing_utils/files_and_dirs.py b/tests/testing_utils/files_and_dirs.py index 54274be3b..5c5bd6bc2 100644 --- a/tests/testing_utils/files_and_dirs.py +++ b/tests/testing_utils/files_and_dirs.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import os diff --git a/tests/testing_utils/fixtures.py b/tests/testing_utils/fixtures.py index 88de07d30..99a4ddd19 100644 --- a/tests/testing_utils/fixtures.py +++ b/tests/testing_utils/fixtures.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import functools diff --git a/tests/testing_utils/result_assertions.py b/tests/testing_utils/result_assertions.py index 399c5bea8..09439f936 100644 --- a/tests/testing_utils/result_assertions.py +++ b/tests/testing_utils/result_assertions.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from click.testing import Result diff --git a/tests_e2e/__init__.py b/tests_e2e/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests_e2e/__init__.py +++ b/tests_e2e/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests_e2e/config/config.toml b/tests_e2e/config/config.toml index 35daa32f1..f6e687db0 100755 --- a/tests_e2e/config/config.toml +++ b/tests_e2e/config/config.toml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [connections.dev] [connections.integration] schema = "public" diff --git a/tests_e2e/config/malformatted_config.toml b/tests_e2e/config/malformatted_config.toml index 606ed17ec..8fd5b47a4 100755 --- a/tests_e2e/config/malformatted_config.toml +++ b/tests_e2e/config/malformatted_config.toml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [connections.dev] [connections.spcs] [connections.integration] diff --git a/tests_e2e/conftest.py b/tests_e2e/conftest.py index fa28c6dc1..4c4ecf290 100644 --- a/tests_e2e/conftest.py +++ b/tests_e2e/conftest.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os import subprocess import tempfile diff --git a/tests_e2e/test_error_handling.py b/tests_e2e/test_error_handling.py index 93950f887..06152ac91 100644 --- a/tests_e2e/test_error_handling.py +++ b/tests_e2e/test_error_handling.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os import subprocess diff --git a/tests_e2e/test_installation.py b/tests_e2e/test_installation.py index bead3458f..060965538 100644 --- a/tests_e2e/test_installation.py +++ b/tests_e2e/test_installation.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import subprocess from pathlib import Path diff --git a/tests_e2e/test_snowpark_examples.py b/tests_e2e/test_snowpark_examples.py index b2f30686e..9b114767d 100644 --- a/tests_e2e/test_snowpark_examples.py +++ b/tests_e2e/test_snowpark_examples.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import subprocess import time diff --git a/tests_integration/__init__.py b/tests_integration/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests_integration/__init__.py +++ b/tests_integration/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests_integration/config/config_with_enabled_all_external_plugins.toml b/tests_integration/config/config_with_enabled_all_external_plugins.toml index c498c2e08..e7d8af6b2 100644 --- a/tests_integration/config/config_with_enabled_all_external_plugins.toml +++ b/tests_integration/config/config_with_enabled_all_external_plugins.toml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [connections.default] [connections.integration] schema = "public" diff --git a/tests_integration/config/config_with_enabled_only_one_external_plugin.toml b/tests_integration/config/config_with_enabled_only_one_external_plugin.toml index abe8c52cc..694540613 100644 --- a/tests_integration/config/config_with_enabled_only_one_external_plugin.toml +++ b/tests_integration/config/config_with_enabled_only_one_external_plugin.toml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [connections.default] [connections.integration] schema = "public" diff --git a/tests_integration/config/connection_configs.toml b/tests_integration/config/connection_configs.toml index 2570480b0..2621bdac7 100644 --- a/tests_integration/config/connection_configs.toml +++ b/tests_integration/config/connection_configs.toml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [connections.default] [connections.integration] schema = "public" diff --git a/tests_integration/config/plugin_tests/broken_plugin_config.toml b/tests_integration/config/plugin_tests/broken_plugin_config.toml index db07027eb..d05645fd7 100644 --- a/tests_integration/config/plugin_tests/broken_plugin_config.toml +++ b/tests_integration/config/plugin_tests/broken_plugin_config.toml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [cli.plugins.broken_plugin] enabled = true diff --git a/tests_integration/config/plugin_tests/disabled_override_plugin_config.toml b/tests_integration/config/plugin_tests/disabled_override_plugin_config.toml index e410747e2..befade525 100644 --- a/tests_integration/config/plugin_tests/disabled_override_plugin_config.toml +++ b/tests_integration/config/plugin_tests/disabled_override_plugin_config.toml @@ -1,2 +1,16 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [connections.test] account = "test" diff --git a/tests_integration/config/plugin_tests/failing_plugin_config.toml b/tests_integration/config/plugin_tests/failing_plugin_config.toml index be46824cd..7a35127dd 100644 --- a/tests_integration/config/plugin_tests/failing_plugin_config.toml +++ b/tests_integration/config/plugin_tests/failing_plugin_config.toml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [cli.plugins.failing_plugin] enabled = true diff --git a/tests_integration/config/plugin_tests/override_plugin_config.toml b/tests_integration/config/plugin_tests/override_plugin_config.toml index d51073b83..e9c775178 100644 --- a/tests_integration/config/plugin_tests/override_plugin_config.toml +++ b/tests_integration/config/plugin_tests/override_plugin_config.toml @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + [cli.plugins.override] enabled = true diff --git a/tests_integration/conftest.py b/tests_integration/conftest.py index 669ef6e14..eee94942a 100644 --- a/tests_integration/conftest.py +++ b/tests_integration/conftest.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import functools diff --git a/tests_integration/nativeapp/test_bundle.py b/tests_integration/nativeapp/test_bundle.py index b9450858b..563f66e2b 100644 --- a/tests_integration/nativeapp/test_bundle.py +++ b/tests_integration/nativeapp/test_bundle.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os import os.path import uuid diff --git a/tests_integration/nativeapp/test_deploy.py b/tests_integration/nativeapp/test_deploy.py index a7fe531f8..3f6942f77 100644 --- a/tests_integration/nativeapp/test_deploy.py +++ b/tests_integration/nativeapp/test_deploy.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os import uuid diff --git a/tests_integration/nativeapp/test_init_run.py b/tests_integration/nativeapp/test_init_run.py index 84902a6f5..db2ef2fc3 100644 --- a/tests_integration/nativeapp/test_init_run.py +++ b/tests_integration/nativeapp/test_init_run.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os import uuid diff --git a/tests_integration/nativeapp/test_teardown.py b/tests_integration/nativeapp/test_teardown.py index 05d349403..ed9ab9648 100644 --- a/tests_integration/nativeapp/test_teardown.py +++ b/tests_integration/nativeapp/test_teardown.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os import uuid from textwrap import dedent diff --git a/tests_integration/nativeapp/test_templates.py b/tests_integration/nativeapp/test_templates.py index 62c1c6749..4195456ec 100644 --- a/tests_integration/nativeapp/test_templates.py +++ b/tests_integration/nativeapp/test_templates.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pytest diff --git a/tests_integration/nativeapp/test_version.py b/tests_integration/nativeapp/test_version.py index e96f0395e..0f165b48e 100644 --- a/tests_integration/nativeapp/test_version.py +++ b/tests_integration/nativeapp/test_version.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import uuid from snowflake.cli.api.project.util import generate_user_env diff --git a/tests_integration/notebook/__init__.py b/tests_integration/notebook/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests_integration/notebook/__init__.py +++ b/tests_integration/notebook/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests_integration/notebook/test_notebooks.py b/tests_integration/notebook/test_notebooks.py index b150474f5..e3c52eaf3 100644 --- a/tests_integration/notebook/test_notebooks.py +++ b/tests_integration/notebook/test_notebooks.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from pathlib import Path import pytest diff --git a/tests_integration/plugin/test_broken_plugin.py b/tests_integration/plugin/test_broken_plugin.py index f58715fb0..0280b6b9e 100644 --- a/tests_integration/plugin/test_broken_plugin.py +++ b/tests_integration/plugin/test_broken_plugin.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from textwrap import dedent import pytest diff --git a/tests_integration/plugin/test_failing_plugin.py b/tests_integration/plugin/test_failing_plugin.py index f362c61d4..a7e8af70e 100644 --- a/tests_integration/plugin/test_failing_plugin.py +++ b/tests_integration/plugin/test_failing_plugin.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from textwrap import dedent import pytest diff --git a/tests_integration/plugin/test_override_by_external_plugins.py b/tests_integration/plugin/test_override_by_external_plugins.py index af70c6443..aa4d4e692 100644 --- a/tests_integration/plugin/test_override_by_external_plugins.py +++ b/tests_integration/plugin/test_override_by_external_plugins.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from textwrap import dedent import pytest diff --git a/tests_integration/scripts/integration_account_setup.sql b/tests_integration/scripts/integration_account_setup.sql index aaafed6e9..c251268b3 100644 --- a/tests_integration/scripts/integration_account_setup.sql +++ b/tests_integration/scripts/integration_account_setup.sql @@ -1,3 +1,19 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + SET INT_TEST_USER = 'SNOWCLI_TEST'; CREATE USER IF NOT EXISTS IDENTIFIER($INT_TEST_USER); diff --git a/tests_integration/snowflake_connector.py b/tests_integration/snowflake_connector.py index f158287a5..feafdb119 100644 --- a/tests_integration/snowflake_connector.py +++ b/tests_integration/snowflake_connector.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import os diff --git a/tests_integration/spcs/__init__.py b/tests_integration/spcs/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests_integration/spcs/__init__.py +++ b/tests_integration/spcs/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests_integration/spcs/docker/echo_service.py b/tests_integration/spcs/docker/echo_service.py index 76ce5b114..1e418358c 100644 --- a/tests_integration/spcs/docker/echo_service.py +++ b/tests_integration/spcs/docker/echo_service.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import logging import os import sys diff --git a/tests_integration/spcs/test_compute_pool.py b/tests_integration/spcs/test_compute_pool.py index ca7357a57..6f4c8494a 100644 --- a/tests_integration/spcs/test_compute_pool.py +++ b/tests_integration/spcs/test_compute_pool.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import uuid from typing import Tuple diff --git a/tests_integration/spcs/test_image_repository.py b/tests_integration/spcs/test_image_repository.py index 9d8d479e6..046a127e1 100644 --- a/tests_integration/spcs/test_image_repository.py +++ b/tests_integration/spcs/test_image_repository.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pytest from snowflake.cli.api.project.util import escape_like_pattern diff --git a/tests_integration/spcs/test_jobs.py b/tests_integration/spcs/test_jobs.py index 73efb1dbb..37f13e77d 100644 --- a/tests_integration/spcs/test_jobs.py +++ b/tests_integration/spcs/test_jobs.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pytest from tests_integration.spcs.testing_utils.spcs_jobs_utils import ( diff --git a/tests_integration/spcs/test_registry.py b/tests_integration/spcs/test_registry.py index 83f76b62e..9b24faf34 100644 --- a/tests_integration/spcs/test_registry.py +++ b/tests_integration/spcs/test_registry.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pytest from tests_integration.test_utils import row_from_snowflake_session diff --git a/tests_integration/spcs/test_services.py b/tests_integration/spcs/test_services.py index d2de1003e..19650e06f 100644 --- a/tests_integration/spcs/test_services.py +++ b/tests_integration/spcs/test_services.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import uuid from typing import Tuple diff --git a/tests_integration/spcs/testing_utils/compute_pool_utils.py b/tests_integration/spcs/testing_utils/compute_pool_utils.py index 86541121a..6589552f1 100644 --- a/tests_integration/spcs/testing_utils/compute_pool_utils.py +++ b/tests_integration/spcs/testing_utils/compute_pool_utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import math import time diff --git a/tests_integration/spcs/testing_utils/spcs_jobs_utils.py b/tests_integration/spcs/testing_utils/spcs_jobs_utils.py index 33418ee49..d0f9e9a46 100644 --- a/tests_integration/spcs/testing_utils/spcs_jobs_utils.py +++ b/tests_integration/spcs/testing_utils/spcs_jobs_utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import json from snowflake.connector import SnowflakeConnection diff --git a/tests_integration/spcs/testing_utils/spcs_services_utils.py b/tests_integration/spcs/testing_utils/spcs_services_utils.py index 241a8c33d..82a374573 100644 --- a/tests_integration/spcs/testing_utils/spcs_services_utils.py +++ b/tests_integration/spcs/testing_utils/spcs_services_utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import json import math import time diff --git a/tests_integration/test_config.py b/tests_integration/test_config.py index 03c69e55e..f15ce3897 100644 --- a/tests_integration/test_config.py +++ b/tests_integration/test_config.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pytest from snowflake.connector.compat import IS_WINDOWS diff --git a/tests_integration/test_connection.py b/tests_integration/test_connection.py index b56b8d5e3..e6bc70b2f 100644 --- a/tests_integration/test_connection.py +++ b/tests_integration/test_connection.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pytest from tests_integration.snowflake_connector import ( setup_test_database, diff --git a/tests_integration/test_cortex.py b/tests_integration/test_cortex.py index 7ce38cb2b..86b9dd034 100644 --- a/tests_integration/test_cortex.py +++ b/tests_integration/test_cortex.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import sys import pytest diff --git a/tests_integration/test_data/empty.sql b/tests_integration/test_data/empty.sql index e69de29bb..da4cb9010 100644 --- a/tests_integration/test_data/empty.sql +++ b/tests_integration/test_data/empty.sql @@ -0,0 +1,15 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ diff --git a/tests_integration/test_data/projects/snowpark/app/app.py b/tests_integration/test_data/projects/snowpark/app/app.py index 3430e84c5..bbfbab037 100644 --- a/tests_integration/test_data/projects/snowpark/app/app.py +++ b/tests_integration/test_data/projects/snowpark/app/app.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import sys diff --git a/tests_integration/test_data/projects/snowpark_coverage/app/__init__.py b/tests_integration/test_data/projects/snowpark_coverage/app/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests_integration/test_data/projects/snowpark_coverage/app/__init__.py +++ b/tests_integration/test_data/projects/snowpark_coverage/app/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests_integration/test_data/projects/snowpark_coverage/app/module/__init__.py b/tests_integration/test_data/projects/snowpark_coverage/app/module/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests_integration/test_data/projects/snowpark_coverage/app/module/__init__.py +++ b/tests_integration/test_data/projects/snowpark_coverage/app/module/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests_integration/test_data/projects/snowpark_coverage/app/module/procedures.py b/tests_integration/test_data/projects/snowpark_coverage/app/module/procedures.py index 5873f53ce..35d205947 100644 --- a/tests_integration/test_data/projects/snowpark_coverage/app/module/procedures.py +++ b/tests_integration/test_data/projects/snowpark_coverage/app/module/procedures.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import sys diff --git a/tests_integration/test_data/projects/snowpark_external_access/app/app.py b/tests_integration/test_data/projects/snowpark_external_access/app/app.py index ab9c551a0..a181dc966 100644 --- a/tests_integration/test_data/projects/snowpark_external_access/app/app.py +++ b/tests_integration/test_data/projects/snowpark_external_access/app/app.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import _snowflake from http.client import HTTPSConnection from snowflake.snowpark import Session diff --git a/tests_integration/test_data/projects/snowpark_fully_qualified_name/app/app.py b/tests_integration/test_data/projects/snowpark_fully_qualified_name/app/app.py index 3430e84c5..bbfbab037 100644 --- a/tests_integration/test_data/projects/snowpark_fully_qualified_name/app/app.py +++ b/tests_integration/test_data/projects/snowpark_fully_qualified_name/app/app.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import sys diff --git a/tests_integration/test_data/projects/snowpark_vectorized/app/app.py b/tests_integration/test_data/projects/snowpark_vectorized/app/app.py index b6ac95032..08b362a89 100644 --- a/tests_integration/test_data/projects/snowpark_vectorized/app/app.py +++ b/tests_integration/test_data/projects/snowpark_vectorized/app/app.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pandas from _snowflake import vectorized diff --git a/tests_integration/test_data/projects/snowpark_version_check/app/app.py b/tests_integration/test_data/projects/snowpark_version_check/app/app.py index f68f66caa..d314816f6 100644 --- a/tests_integration/test_data/projects/snowpark_version_check/app/app.py +++ b/tests_integration/test_data/projects/snowpark_version_check/app/app.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import mypy diff --git a/tests_integration/test_data/projects/snowpark_with_default_values/app/app.py b/tests_integration/test_data/projects/snowpark_with_default_values/app/app.py index 66c743d0c..bce7b5cae 100644 --- a/tests_integration/test_data/projects/snowpark_with_default_values/app/app.py +++ b/tests_integration/test_data/projects/snowpark_with_default_values/app/app.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from typing import List from snowflake.snowpark import Session diff --git a/tests_integration/test_data/projects/snowpark_with_import/app/__init__.py b/tests_integration/test_data/projects/snowpark_with_import/app/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests_integration/test_data/projects/snowpark_with_import/app/__init__.py +++ b/tests_integration/test_data/projects/snowpark_with_import/app/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests_integration/test_data/projects/snowpark_with_import/app/functions.py b/tests_integration/test_data/projects/snowpark_with_import/app/functions.py index a17ad724d..99eca1ff8 100644 --- a/tests_integration/test_data/projects/snowpark_with_import/app/functions.py +++ b/tests_integration/test_data/projects/snowpark_with_import/app/functions.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from dummy_pkg_for_tests import shrubbery diff --git a/tests_integration/test_data/projects/snowpark_with_single_requirements_having_no_other_deps/app/__init__.py b/tests_integration/test_data/projects/snowpark_with_single_requirements_having_no_other_deps/app/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests_integration/test_data/projects/snowpark_with_single_requirements_having_no_other_deps/app/__init__.py +++ b/tests_integration/test_data/projects/snowpark_with_single_requirements_having_no_other_deps/app/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests_integration/test_data/projects/snowpark_with_single_requirements_having_no_other_deps/app/functions.py b/tests_integration/test_data/projects/snowpark_with_single_requirements_having_no_other_deps/app/functions.py index a17ad724d..99eca1ff8 100644 --- a/tests_integration/test_data/projects/snowpark_with_single_requirements_having_no_other_deps/app/functions.py +++ b/tests_integration/test_data/projects/snowpark_with_single_requirements_having_no_other_deps/app/functions.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from dummy_pkg_for_tests import shrubbery diff --git a/tests_integration/test_data/projects/snowpark_with_single_requirements_having_transient_deps/app/__init__.py b/tests_integration/test_data/projects/snowpark_with_single_requirements_having_transient_deps/app/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests_integration/test_data/projects/snowpark_with_single_requirements_having_transient_deps/app/__init__.py +++ b/tests_integration/test_data/projects/snowpark_with_single_requirements_having_transient_deps/app/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests_integration/test_data/projects/snowpark_with_single_requirements_having_transient_deps/app/functions.py b/tests_integration/test_data/projects/snowpark_with_single_requirements_having_transient_deps/app/functions.py index d9f65191e..3a81ffe8d 100644 --- a/tests_integration/test_data/projects/snowpark_with_single_requirements_having_transient_deps/app/functions.py +++ b/tests_integration/test_data/projects/snowpark_with_single_requirements_having_transient_deps/app/functions.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from dummy_pkg_for_tests_with_deps import shrubbery diff --git a/tests_integration/test_data/projects/stage_execute/script1.sql b/tests_integration/test_data/projects/stage_execute/script1.sql index ab290eb4c..f2449d634 100644 --- a/tests_integration/test_data/projects/stage_execute/script1.sql +++ b/tests_integration/test_data/projects/stage_execute/script1.sql @@ -1 +1,17 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + select 1; diff --git a/tests_integration/test_data/projects/stage_execute/script2.sql b/tests_integration/test_data/projects/stage_execute/script2.sql index b403af153..a44a4c259 100644 --- a/tests_integration/test_data/projects/stage_execute/script2.sql +++ b/tests_integration/test_data/projects/stage_execute/script2.sql @@ -1 +1,17 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + select 2; diff --git a/tests_integration/test_data/projects/stage_execute/script3.sql b/tests_integration/test_data/projects/stage_execute/script3.sql index e4ee53460..a3dc7bd23 100644 --- a/tests_integration/test_data/projects/stage_execute/script3.sql +++ b/tests_integration/test_data/projects/stage_execute/script3.sql @@ -1 +1,17 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + select 3; diff --git a/tests_integration/test_data/projects/stage_execute/script_template.sql b/tests_integration/test_data/projects/stage_execute/script_template.sql index 126c6fb8e..0922faa08 100644 --- a/tests_integration/test_data/projects/stage_execute/script_template.sql +++ b/tests_integration/test_data/projects/stage_execute/script_template.sql @@ -1,3 +1,19 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + --!jinja select '{{text}} {{value}} {{boolean}} {{null_value}}'; diff --git a/tests_integration/test_data/projects/stage_get_directory_structure/dir/script2.sql b/tests_integration/test_data/projects/stage_get_directory_structure/dir/script2.sql index b403af153..a44a4c259 100644 --- a/tests_integration/test_data/projects/stage_get_directory_structure/dir/script2.sql +++ b/tests_integration/test_data/projects/stage_get_directory_structure/dir/script2.sql @@ -1 +1,17 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + select 2; diff --git a/tests_integration/test_data/projects/stage_get_directory_structure/dir/subdir/script3.sql b/tests_integration/test_data/projects/stage_get_directory_structure/dir/subdir/script3.sql index e4ee53460..a3dc7bd23 100644 --- a/tests_integration/test_data/projects/stage_get_directory_structure/dir/subdir/script3.sql +++ b/tests_integration/test_data/projects/stage_get_directory_structure/dir/subdir/script3.sql @@ -1 +1,17 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + select 3; diff --git a/tests_integration/test_data/projects/stage_get_directory_structure/script1.sql b/tests_integration/test_data/projects/stage_get_directory_structure/script1.sql index ab290eb4c..f2449d634 100644 --- a/tests_integration/test_data/projects/stage_get_directory_structure/script1.sql +++ b/tests_integration/test_data/projects/stage_get_directory_structure/script1.sql @@ -1 +1,17 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + select 1; diff --git a/tests_integration/test_data/projects/streamlit/pages/my_page.py b/tests_integration/test_data/projects/streamlit/pages/my_page.py index bc3ecbccb..9a064bd3a 100644 --- a/tests_integration/test_data/projects/streamlit/pages/my_page.py +++ b/tests_integration/test_data/projects/streamlit/pages/my_page.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import streamlit as st st.title("Example page") diff --git a/tests_integration/test_data/projects/streamlit/streamlit_app.py b/tests_integration/test_data/projects/streamlit/streamlit_app.py index be783d837..fe71ead56 100644 --- a/tests_integration/test_data/projects/streamlit/streamlit_app.py +++ b/tests_integration/test_data/projects/streamlit/streamlit_app.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import streamlit as st from utils.utils import hello diff --git a/tests_integration/test_data/projects/streamlit/utils/utils.py b/tests_integration/test_data/projects/streamlit/utils/utils.py index c6a2bb574..d2c29b47c 100644 --- a/tests_integration/test_data/projects/streamlit/utils/utils.py +++ b/tests_integration/test_data/projects/streamlit/utils/utils.py @@ -1,2 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + def hello(): return "Hello!" diff --git a/tests_integration/test_data/sql_multi_queries.sql b/tests_integration/test_data/sql_multi_queries.sql index 7e2b91d36..a892c5eb7 100644 --- a/tests_integration/test_data/sql_multi_queries.sql +++ b/tests_integration/test_data/sql_multi_queries.sql @@ -1,3 +1,19 @@ +/* + Copyright (c) 2024 Snowflake Inc. + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +*/ + select round(ln(1), 4); select round(ln(10), 4); select round(ln(100), 4); diff --git a/tests_integration/test_external_plugins.py b/tests_integration/test_external_plugins.py index cdbc88d83..2a56748ef 100644 --- a/tests_integration/test_external_plugins.py +++ b/tests_integration/test_external_plugins.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from pathlib import Path import pytest diff --git a/tests_integration/test_git.py b/tests_integration/test_git.py index abbc8cc49..e7679315a 100644 --- a/tests_integration/test_git.py +++ b/tests_integration/test_git.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pytest from snowflake.connector.errors import ProgrammingError from pathlib import Path diff --git a/tests_integration/test_object.py b/tests_integration/test_object.py index 74ac9eaf2..82e53fe6b 100644 --- a/tests_integration/test_object.py +++ b/tests_integration/test_object.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pytest from tests_integration.test_utils import row_from_cursor diff --git a/tests_integration/test_package.py b/tests_integration/test_package.py index 50f4e4274..bc99d59d8 100644 --- a/tests_integration/test_package.py +++ b/tests_integration/test_package.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os import tempfile from pathlib import Path diff --git a/tests_integration/test_session_token.py b/tests_integration/test_session_token.py index 8a40bea44..dfaa4a47a 100644 --- a/tests_integration/test_session_token.py +++ b/tests_integration/test_session_token.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pytest diff --git a/tests_integration/test_snowpark.py b/tests_integration/test_snowpark.py index 966bb597e..24bf5a342 100644 --- a/tests_integration/test_snowpark.py +++ b/tests_integration/test_snowpark.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from pathlib import Path diff --git a/tests_integration/test_snowpark_external_access.py b/tests_integration/test_snowpark_external_access.py index 3f8d0977d..a9ecfd323 100644 --- a/tests_integration/test_snowpark_external_access.py +++ b/tests_integration/test_snowpark_external_access.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pytest from tests.testing_utils.fixtures import alter_snowflake_yml diff --git a/tests_integration/test_sql.py b/tests_integration/test_sql.py index 0a3c191fb..e4e37bbd3 100644 --- a/tests_integration/test_sql.py +++ b/tests_integration/test_sql.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import time from unittest import mock diff --git a/tests_integration/test_stage.py b/tests_integration/test_stage.py index 26a382ccc..044fb7c07 100644 --- a/tests_integration/test_stage.py +++ b/tests_integration/test_stage.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import glob import os import tempfile diff --git a/tests_integration/test_streamlit.py b/tests_integration/test_streamlit.py index 675eb6f52..799965015 100644 --- a/tests_integration/test_streamlit.py +++ b/tests_integration/test_streamlit.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import uuid from pathlib import Path diff --git a/tests_integration/test_temporary_connection.py b/tests_integration/test_temporary_connection.py index cbefd5a52..516b5b9f6 100644 --- a/tests_integration/test_temporary_connection.py +++ b/tests_integration/test_temporary_connection.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import pytest diff --git a/tests_integration/test_utils.py b/tests_integration/test_utils.py index 000155aab..81dec980e 100644 --- a/tests_integration/test_utils.py +++ b/tests_integration/test_utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import os import datetime from typing import Any, Dict, List diff --git a/tests_integration/testing_utils/__init__.py b/tests_integration/testing_utils/__init__.py index df7ab2830..b8549ea34 100644 --- a/tests_integration/testing_utils/__init__.py +++ b/tests_integration/testing_utils/__init__.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from tests_integration.testing_utils.assertions.test_file_assertions import * from tests_integration.testing_utils.assertions.test_result_assertions import * from tests_integration.testing_utils.naming_utils import * diff --git a/tests_integration/testing_utils/assertions/__init__.py b/tests_integration/testing_utils/assertions/__init__.py index e69de29bb..ada0a4e13 100644 --- a/tests_integration/testing_utils/assertions/__init__.py +++ b/tests_integration/testing_utils/assertions/__init__.py @@ -0,0 +1,13 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. diff --git a/tests_integration/testing_utils/assertions/test_file_assertions.py b/tests_integration/testing_utils/assertions/test_file_assertions.py index 8848a8b1c..b667d5d6c 100644 --- a/tests_integration/testing_utils/assertions/test_file_assertions.py +++ b/tests_integration/testing_utils/assertions/test_file_assertions.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations from pathlib import Path diff --git a/tests_integration/testing_utils/assertions/test_result_assertions.py b/tests_integration/testing_utils/assertions/test_result_assertions.py index 9654d0384..3e4f5ccdf 100644 --- a/tests_integration/testing_utils/assertions/test_result_assertions.py +++ b/tests_integration/testing_utils/assertions/test_result_assertions.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import json import re from typing import Dict, List, Optional, Union diff --git a/tests_integration/testing_utils/naming_utils.py b/tests_integration/testing_utils/naming_utils.py index b0ee21be7..c532482a5 100644 --- a/tests_integration/testing_utils/naming_utils.py +++ b/tests_integration/testing_utils/naming_utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import datetime import uuid diff --git a/tests_integration/testing_utils/snowpark_utils.py b/tests_integration/testing_utils/snowpark_utils.py index f8a739be8..1329eb944 100644 --- a/tests_integration/testing_utils/snowpark_utils.py +++ b/tests_integration/testing_utils/snowpark_utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from __future__ import annotations import json diff --git a/tests_integration/testing_utils/sql_utils.py b/tests_integration/testing_utils/sql_utils.py index 8316f37de..81c49a65b 100644 --- a/tests_integration/testing_utils/sql_utils.py +++ b/tests_integration/testing_utils/sql_utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + from typing import Any, Dict, List import pytest diff --git a/tests_integration/testing_utils/working_directory_utils.py b/tests_integration/testing_utils/working_directory_utils.py index d934bc22f..bfb0ec92f 100644 --- a/tests_integration/testing_utils/working_directory_utils.py +++ b/tests_integration/testing_utils/working_directory_utils.py @@ -1,3 +1,17 @@ +# Copyright (c) 2024 Snowflake Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + import contextlib import os from pathlib import Path