Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .pylintrc

This file was deleted.

7 changes: 0 additions & 7 deletions app.toml

This file was deleted.

2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Snowpark environment file
# https://docs.snowflake.com/en/developer-guide/snowpark/python/setup.html

name: snowpark
name: snowpark2
channels:
- snowflake
dependencies:
Expand Down
28 changes: 28 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
[build-system]
requires = ["hatchling", "hatch-requirements-txt"]
build-backend = "hatchling.build"

[tool.hatch.metadata.hooks.requirements_txt]
files = ["requirements.txt"]

[snow.default]
snowsql_config_path = ""
snowsql_connection_name = ""

[snow.dev]
database = ""
schema = ""
role = ""
warehouse = ""

[tool.pytest.ini_options]
markers = snowflake_vcr: marks Snowflake-specific vcrpy tests

[tool.pylint]
ignore-patterns=test_
good-names=df
ignore=
__init__.py
disable=
import-error,
import-outside-toplevel
2 changes: 0 additions & 2 deletions pytest.ini

This file was deleted.

1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ tomli
toml
pytest
snowflake-vcrpy @ git+https://github.com/Snowflake-Labs/snowflake-vcrpy.git@v0.1.1
pytest-grpc
12 changes: 0 additions & 12 deletions setup.py

This file was deleted.

8 changes: 5 additions & 3 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ def run(snowpark_session: Session) -> DataFrame:
return df2


if __name__ == "__main__":
# This entrypoint is used for local development (`$ python src/procs/app.py`)

def main():
from src.util.local import get_env_var_config

print("Creating session...")
Expand All @@ -46,3 +44,7 @@ def run(snowpark_session: Session) -> DataFrame:

print("Stored procedure complete:")
result.show()


if __name__ == "__main__":
main()