Skip to content

Commit c1d70e8

Browse files
committed
Pylint and Blackify.
1 parent ef7c6a6 commit c1d70e8

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

adafruit_simple_text_display.py

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ class SimpleTextDisplay:
5959
SKY = (0, 180, 255)
6060

6161
def __init__( # pylint: disable=too-many-arguments
62-
self,
63-
title=None,
64-
title_color=0xFFFFFF,
65-
title_scale=1,
66-
title_length=80,
67-
text_scale=1,
68-
font=None,
69-
colors=None,
70-
display=None,
62+
self,
63+
title=None,
64+
title_color=0xFFFFFF,
65+
title_scale=1,
66+
title_length=80,
67+
text_scale=1,
68+
font=None,
69+
colors=None,
70+
display=None,
7171
):
7272
"""Display lines of text on a display using displayio. Lines of text are created in order as
7373
shown in the example below. If you skip a number, the line will be shown blank on the
@@ -158,8 +158,10 @@ def __init__( # pylint: disable=too-many-arguments
158158
if title:
159159
# Fail gracefully if title is longer than title_length characters. Defaults to 80.
160160
if len(title) > title_length:
161-
raise ValueError("Title character count must be less than or equal to title_length."
162-
" Default is 80.")
161+
raise ValueError(
162+
"Title character count must be less than or equal to title_length."
163+
" Default is 80."
164+
)
163165

164166
title = label.Label(
165167
self._font,

examples/simple_text_display_simpletest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# SPDX-FileCopyrightText: Copyright (c) 2021 Kattni Rembor for Adafruit Industries
22
#
33
# SPDX-License-Identifier: Unlicense
4+
# pylint: disable=no-member
45
"""Display the microcontroller CPU temperature in C and F on a display."""
56
import microcontroller
67
from adafruit_simple_text_display import SimpleTextDisplay

0 commit comments

Comments
 (0)