Skip to content

Commit 72f546f

Browse files
committed
ruff format
1 parent c48e1eb commit 72f546f

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

examples/local_audio/full_duplex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def on_participant_disconnected(participant: rtc.RemoteParticipant):
100100
logging.info("participant disconnected: %s", participant.identity)
101101

102102
room.on("participant_disconnected", on_participant_disconnected)
103-
103+
104104
token = (
105105
api.AccessToken(api_key, api_secret)
106106
.with_identity("local-audio")

examples/local_audio/publish_mic.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ async def main() -> None:
1616
api_key = os.getenv("LIVEKIT_API_KEY")
1717
api_secret = os.getenv("LIVEKIT_API_SECRET")
1818
if not url or not api_key or not api_secret:
19-
raise RuntimeError("LIVEKIT_URL and LIVEKIT_API_KEY and LIVEKIT_API_SECRET must be set in env")
19+
raise RuntimeError(
20+
"LIVEKIT_URL and LIVEKIT_API_KEY and LIVEKIT_API_SECRET must be set in env"
21+
)
2022

2123
room = rtc.Room()
2224

2325
# Create media devices helper and open default microphone with AEC enabled
2426
devices = rtc.MediaDevices()
2527
mic = devices.open_input(enable_aec=True)
26-
28+
2729
token = (
2830
api.AccessToken(api_key, api_secret)
2931
.with_identity("local-audio")
@@ -36,7 +38,7 @@ async def main() -> None:
3638
)
3739
.to_jwt()
3840
)
39-
41+
4042
try:
4143
await room.connect(url, token)
4244
logging.info("connected to room %s", room.name)

0 commit comments

Comments
 (0)