Skip to content

Commit 44ef1e3

Browse files
committed
lint
1 parent cab71bc commit 44ef1e3

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

examples/devbox_tunnel.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ async def recipe(ctx: RecipeContext) -> RecipeOutput:
6868

6969
# Get the tunnel URL for the server port
7070
tunnel_url = await devbox.get_tunnel_url(HTTP_SERVER_PORT)
71+
if tunnel_url is None:
72+
raise RuntimeError("Failed to get tunnel URL after enabling tunnel")
7173

7274
# Make an HTTP request from the LOCAL MACHINE through the tunnel to the devbox
7375
# This demonstrates that the tunnel allows external access to the devbox service
@@ -88,7 +90,9 @@ async def recipe(ctx: RecipeContext) -> RecipeOutput:
8890
),
8991
ExampleCheck(
9092
name="tunnel URL was constructed correctly",
91-
passed=tunnel.tunnel_key in tunnel_url and str(HTTP_SERVER_PORT) in tunnel_url,
93+
passed=bool(
94+
tunnel.tunnel_key and tunnel.tunnel_key in tunnel_url and str(HTTP_SERVER_PORT) in tunnel_url
95+
),
9296
details=tunnel_url,
9397
),
9498
ExampleCheck(

examples/registry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
from typing import Any, Callable, cast
99

10-
from .example_types import ExampleResult
1110
from .devbox_tunnel import run_devbox_tunnel_example
11+
from .example_types import ExampleResult
1212
from .mcp_github_tools import run_mcp_github_tools_example
1313
from .blueprint_with_build_context import run_blueprint_with_build_context_example
1414
from .devbox_from_blueprint_lifecycle import run_devbox_from_blueprint_lifecycle_example

0 commit comments

Comments
 (0)