Skip to content

Commit bc92d9d

Browse files
committed
ruff format
1 parent 777ed87 commit bc92d9d

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

examples/local_video/publisher.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,9 @@ async def _capture_loop(
190190

191191
now = time.perf_counter()
192192
if now - last_log_at >= 2.0:
193-
logging.info("published %s frames at ~%.1f fps", submitted, submitted / (now - last_log_at))
193+
logging.info(
194+
"published %s frames at ~%.1f fps", submitted, submitted / (now - last_log_at)
195+
)
194196
submitted = 0
195197
last_log_at = now
196198

examples/local_video/subscriber.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ def parse_args() -> argparse.Namespace:
3737
formatter_class=argparse.ArgumentDefaultsHelpFormatter,
3838
)
3939
parser.add_argument("--room-name", default="video-room", help="LiveKit room name")
40-
parser.add_argument("--identity", default="python-video-subscriber", help="Participant identity")
40+
parser.add_argument(
41+
"--identity", default="python-video-subscriber", help="Participant identity"
42+
)
4143
parser.add_argument(
4244
"--participant",
4345
help="Only subscribe to video from this participant identity",
@@ -150,9 +152,7 @@ def _draw_timestamp_overlay(
150152
thickness = 1
151153
line_height = 22
152154
padding = 8
153-
text_sizes = [
154-
cv2.getTextSize(line, font_face, font_scale, thickness)[0] for line in lines
155-
]
155+
text_sizes = [cv2.getTextSize(line, font_face, font_scale, thickness)[0] for line in lines]
156156
box_width = max(width for width, _ in text_sizes) + (padding * 2)
157157
box_height = (line_height * len(lines)) + (padding * 2)
158158
cv2.rectangle(image, (8, 8), (8 + box_width, 8 + box_height), (0, 0, 0), -1)

0 commit comments

Comments
 (0)