diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index f066ce7638..6b73131ec0 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -108,7 +108,8 @@ repos: (?x) ^\.github/| tests/test_data/projects/.*| - tests_integration/test_data/projects/.* + tests_integration/test_data/projects/.*| + src/snowflake/cli/templates/.* files: \.py$|\.pyi$ args: - --comment-style diff --git a/src/snowflake/cli/templates/default_snowpark/app/__init__.py b/src/snowflake/cli/templates/default_snowpark/app/__init__.py index ada0a4e13d..e69de29bb2 100644 --- a/src/snowflake/cli/templates/default_snowpark/app/__init__.py +++ b/src/snowflake/cli/templates/default_snowpark/app/__init__.py @@ -1,13 +0,0 @@ -# Copyright (c) 2024 Snowflake Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT 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 ea2e5f05c8..17013ea6fd 100644 --- a/src/snowflake/cli/templates/default_snowpark/app/common.py +++ b/src/snowflake/cli/templates/default_snowpark/app/common.py @@ -1,17 +1,2 @@ -# Copyright (c) 2024 Snowflake Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT 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 1136205b24..d9e3b54070 100644 --- a/src/snowflake/cli/templates/default_snowpark/app/functions.py +++ b/src/snowflake/cli/templates/default_snowpark/app/functions.py @@ -1,17 +1,3 @@ -# Copyright (c) 2024 Snowflake Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT 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 aebd84d0c5..5369ac4fd5 100644 --- a/src/snowflake/cli/templates/default_snowpark/app/procedures.py +++ b/src/snowflake/cli/templates/default_snowpark/app/procedures.py @@ -1,17 +1,3 @@ -# Copyright (c) 2024 Snowflake Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT 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 5f201a057c..ecf4f843f8 100644 --- a/src/snowflake/cli/templates/default_streamlit/common/hello.py +++ b/src/snowflake/cli/templates/default_streamlit/common/hello.py @@ -1,17 +1,2 @@ -# Copyright (c) 2024 Snowflake Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT 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 9a064bd3a2..bc3ecbccba 100644 --- a/src/snowflake/cli/templates/default_streamlit/pages/my_page.py +++ b/src/snowflake/cli/templates/default_streamlit/pages/my_page.py @@ -1,17 +1,3 @@ -# Copyright (c) 2024 Snowflake Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT 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 bbd60f6418..234a47273c 100644 --- a/src/snowflake/cli/templates/default_streamlit/streamlit_app.py +++ b/src/snowflake/cli/templates/default_streamlit/streamlit_app.py @@ -1,17 +1,3 @@ -# Copyright (c) 2024 Snowflake Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT 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