Skip to content

Commit

Permalink
Merge branch 'refs/heads/server-side-snowpark' into vbudati/SNOW-1491306
Browse files Browse the repository at this point in the history
-df-first-sample-random-split

# Conflicts:
#	src/snowflake/snowpark/_internal/proto/ast_pb2.py
  • Loading branch information
sfc-gh-vbudati committed Jun 28, 2024
2 parents d63b752 + f513ea9 commit 46477d1
Show file tree
Hide file tree
Showing 3 changed files with 582 additions and 584 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
exclude: '^(.*egg.info.*|.*/parameters.py|docs/).*$'
exclude: '^(.*egg.info.*|.*/parameters.py|.*/_vendored|docs/).*$'
default_language_version:
python: python3.9
repos:
Expand Down Expand Up @@ -83,7 +83,7 @@ repos:
# prints are allowed in test files
- --per-file-ignores=tests/*.py:T201
# Ignore errors for protobuf generated file
- --exclude=src/snowflake/snowpark/_internal/proto/ast_pb2.py
- --exclude=src/_vendored,src/snowflake/snowpark/_internal/proto/ast_pb2.py
# Use mypy for static type checking.
- repo: https://github.com/pre-commit/mirrors-mypy
rev: 'v0.991'
Expand Down
1,158 changes: 577 additions & 581 deletions src/snowflake/snowpark/_internal/proto/ast_pb2.py

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion tests/ast/test_ast_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ class TestCase:

def parse_file(file):
"""Parses a test case file."""
with open(file, "r", encoding="utf-8") as f:
# TODO(oplaton): Auto-formatters keep simplifying open(file, "r", ...) to drop the mode.
# Find a way to keep it as is.
with open(file, encoding="utf-8") as f:
src = f.readlines()

try:
Expand Down

0 comments on commit 46477d1

Please sign in to comment.