Skip to content

Commit

Permalink
Fixed precommit errors
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-astus committed Dec 4, 2024
1 parent 26b98ce commit f2e223f
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ repos:
hooks:
- id: mypy
additional_dependencies: [types-pkg-resources==0.1.3, types-all==1.0.0]
exclude: >
(?x)
^tests/test_data/projects/.*|
^tests_integration/test_data/projects/.*
- repo: https://github.com/codespell-project/codespell
rev: v2.2.4
hooks:
Expand Down
2 changes: 1 addition & 1 deletion tests/nativeapp/test_artifacts.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import pytest
from click import ClickException
from snowflake.cli._plugins.nativeapp.artifacts import (
VersionInfo,
build_bundle,
find_events_definitions_in_manifest_file,
find_version_info_in_manifest_file,
Expand All @@ -29,7 +30,6 @@
NotInDeployRootError,
SourceNotFoundError,
TooManyFilesError,
VersionInfo,
)
from snowflake.cli.api.project.definition import load_project
from snowflake.cli.api.project.schemas.entities.common import PathMapping
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from common.hello import say_hello

import streamlit as st

st.title(f"Example streamlit app. {say_hello()}")
3 changes: 3 additions & 0 deletions tests_integration/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,5 +266,8 @@ def enable_snowpark_glob_support_feature_flag():
with mock.patch(
f"snowflake.cli.api.feature_flags.FeatureFlag.ENABLE_SNOWPARK_GLOB_SUPPORT.is_enabled",
return_value=True,
), mock.patch(
f"snowflake.cli.api.feature_flags.FeatureFlag.ENABLE_SNOWPARK_GLOB_SUPPORT.is_disabled",
return_value=False,
):
yield

0 comments on commit f2e223f

Please sign in to comment.