diff --git a/src/snowflake/cli/api/project/schemas/entities/snowpark_entity.py b/src/snowflake/cli/api/project/schemas/entities/snowpark_entity.py index e234f4a83c..ac20a2dce0 100644 --- a/src/snowflake/cli/api/project/schemas/entities/snowpark_entity.py +++ b/src/snowflake/cli/api/project/schemas/entities/snowpark_entity.py @@ -90,7 +90,9 @@ def get_artifacts(self) -> List[PathMapping]: elif isinstance(artifact, PathMapping): if "*" in str(artifact.src): root = ( - artifact.src.parent.absolute() if not "**" in str(artifact) else Path(".").absolute() + artifact.src.parent.absolute() + if not "**" in str(artifact) + else Path(".").absolute() ) _artifacts.extend( [ diff --git a/src/snowflake/cli/api/project/schemas/entities/streamlit_entity_model.py b/src/snowflake/cli/api/project/schemas/entities/streamlit_entity_model.py index 7da400b207..d0dbf6f2ef 100644 --- a/src/snowflake/cli/api/project/schemas/entities/streamlit_entity_model.py +++ b/src/snowflake/cli/api/project/schemas/entities/streamlit_entity_model.py @@ -76,7 +76,11 @@ def get_artifacts(self): _artifacts = [] for artifact in self.artifacts: if "*" in str(artifact): - root = artifact.parent.absolute() if "**" not in str(artifact) else Path(".") + root = ( + artifact.parent.absolute() + if "**" not in str(artifact) + else Path(".") + ) _artifacts.extend([item for item in root.glob(artifact.name)]) else: _artifacts.append(artifact)