Skip to content

Commit 24dcbab

Browse files
committed
Linting
1 parent 45687ee commit 24dcbab

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

adafruit_pybadger.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -329,28 +329,25 @@ def show_badge(self, *, background_color=0xFF0000, foreground_color=0xFFFFFF,
329329
(int(self.display.height * 0.5)), fill=foreground_color)
330330
splash.append(rect)
331331

332-
hello_scale = hello_scale
333332
hello_group = displayio.Group(scale=hello_scale)
334333
hello_label = Label(font=hello_font, text=hello_string)
335-
(_, _, width, height) = hello_label.bounding_box
334+
(_, _, width, _) = hello_label.bounding_box
336335
hello_label.x = ((self.display.width // (2 * hello_scale)) - width // 2)
337336
hello_label.y = int(self.display.height * (0.117 / hello_scale))
338337
hello_label.color = background_text_color
339338
hello_group.append(hello_label)
340339

341-
my_name_is_scale = my_name_is_scale
342340
my_name_is_group = displayio.Group(scale=my_name_is_scale)
343341
my_name_is_label = Label(font=my_name_is_font, text=my_name_is_string)
344-
(_, _, width, height) = my_name_is_label.bounding_box
342+
(_, _, width, _) = my_name_is_label.bounding_box
345343
my_name_is_label.x = ((self.display.width // (2 * my_name_is_scale)) - width // 2)
346344
my_name_is_label.y = int(self.display.height * (0.28 / my_name_is_scale))
347345
my_name_is_label.color = background_text_color
348346
my_name_is_group.append(my_name_is_label)
349347

350-
name_scale = name_scale
351348
name_group = displayio.Group(scale=name_scale)
352349
name_label = Label(font=name_font, text=name_string, line_spacing=0.75)
353-
(_, _, width, height) = name_label.bounding_box
350+
(_, _, width, _) = name_label.bounding_box
354351
name_label.x = ((self.display.width // (2 * name_scale)) - width // 2)
355352
name_label.y = int(self.display.height * (0.65 / name_scale))
356353
name_label.color = foreground_text_color

0 commit comments

Comments
 (0)