Skip to content

Commit

Permalink
Remove Snowflake license headers from templates (#1304)
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-turbaszek authored Jul 11, 2024
1 parent a53f6d3 commit 2ae3107
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 100 deletions.
3 changes: 2 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 0 additions & 13 deletions src/snowflake/cli/templates/default_snowpark/app/__init__.py
Original file line number Diff line number Diff line change
@@ -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.
15 changes: 0 additions & 15 deletions src/snowflake/cli/templates/default_snowpark/app/common.py
Original file line number Diff line number Diff line change
@@ -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}!"
14 changes: 0 additions & 14 deletions src/snowflake/cli/templates/default_snowpark/app/functions.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
14 changes: 0 additions & 14 deletions src/snowflake/cli/templates/default_snowpark/app/procedures.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
15 changes: 0 additions & 15 deletions src/snowflake/cli/templates/default_streamlit/common/hello.py
Original file line number Diff line number Diff line change
@@ -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!"
14 changes: 0 additions & 14 deletions src/snowflake/cli/templates/default_streamlit/pages/my_page.py
Original file line number Diff line number Diff line change
@@ -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")
14 changes: 0 additions & 14 deletions src/snowflake/cli/templates/default_streamlit/streamlit_app.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit 2ae3107

Please sign in to comment.