Skip to content

Commit 97f75ad

Browse files
Fix lint: Break long lines to comply with 88 char limit
- Split long comment in _deploy_legacy() method - Break deprecation warning string across multiple lines - Format long test invocation call - Fix typo: elswhere → elsewhere
1 parent e7c6ab7 commit 97f75ad

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/snowflake/cli/_plugins/streamlit/commands.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,8 @@ def streamlit_deploy(
162162
# Warn if --experimental is used
163163
if options.get("experimental"):
164164
workspace_ctx.console.warning(
165-
"[Deprecation] The --experimental flag is deprecated. Versioned deployment is now the default behavior. "
165+
"[Deprecation] The --experimental flag is deprecated. "
166+
"Versioned deployment is now the default behavior. "
166167
"This flag will be removed in a future version."
167168
)
168169

src/snowflake/cli/_plugins/streamlit/streamlit_entity.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@ def _deploy_legacy(
219219
console = self._workspace_ctx.console
220220
console.step(f"Uploading artifacts to stage {self.model.stage}")
221221

222-
# We use a static method from StageManager here, but maybe this logic could be implemented elswhere, as we implement entities?
222+
# We use a static method from StageManager here, but maybe this logic
223+
# could be implemented elsewhere, as we implement entities?
223224
name = (
224225
self.model.identifier.name
225226
if isinstance(self.model.identifier, Identifier)

tests/streamlit/test_streamlit_commands.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,9 @@ def test_command_aliases(self, mock_execute_query, command, parameters, runner):
498498
def test_selecting_streamlit_from_pdf(self, entity_id, project_directory, runner):
499499

500500
with project_directory("example_streamlit_multiple_v2"):
501-
result = runner.invoke(["streamlit", "deploy", entity_id, "--replace", "--legacy"])
501+
result = runner.invoke(
502+
["streamlit", "deploy", entity_id, "--replace", "--legacy"]
503+
)
502504

503505
expected_query = dedent(
504506
f"""

0 commit comments

Comments
 (0)