Skip to content

Commit 756048d

Browse files
committed
Linted and reformatted
1 parent 299ae8a commit 756048d

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

adafruit_pybadger/pybadger_base.py

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@
5656

5757
try:
5858
from typing import Union, Tuple, Optional, Generator
59-
from adafruit_bitmap_font.bdf import BDF
60-
from adafruit_bitmap_font.pcf import PCF
59+
from adafruit_bitmap_font.bdf import BDF # pylint: disable=ungrouped-imports
60+
from adafruit_bitmap_font.pcf import PCF # pylint: disable=ungrouped-imports
6161
from fontio import BuiltinFont
6262
from keypad import Keys, ShiftRegisterKeys
6363
from neopixel import NeoPixel
@@ -193,13 +193,15 @@ def badge_background(
193193
"""Create a customisable badge background made up of a background color with a rectangle
194194
color block over it. Defaults are for ``show_badge``.
195195
196-
:param tuple background_color: The color to fill the entire screen as a background, as RGB values.
197-
:param tuple rectangle_color: The color of a rectangle that displays over the background, as RGB values.
196+
:param tuple background_color: The color to fill the entire screen as a background, as
197+
RGB values.
198+
:param tuple rectangle_color: The color of a rectangle that displays over the background,
199+
as RGB values.
198200
:param float rectangle_drop: The distance from the top of the display to begin displaying
199201
the rectangle. Float represents a percentage of the display,
200202
e.g. 0.4 = 40% of the display. Defaults to ``0.4``.
201-
:param float rectangle_height: The height of the rectangle. Float represents a percentage of
202-
the display, e.g. 0.5 = 50% of the display. Defaults to
203+
:param float rectangle_height: The height of the rectangle. Float represents a percentage
204+
of the display, e.g. 0.5 = 50% of the display. Defaults to
203205
``0.5``.
204206
205207
.. code-block:: python
@@ -282,8 +284,8 @@ def badge_line(
282284
:param tuple color: The color of the line of text. Defaults to ``(0, 0, 0)``.
283285
:param int scale: The scale of the text. Must be an integer 1 or higher. Defaults to ``1``.
284286
:param font: The font used for displaying the text. Defaults to ``terminalio.FONT``.
285-
:param bool left_justify: Left-justify the line of text. Defaults to ``False`` which centers the
286-
font on the display.
287+
:param bool left_justify: Left-justify the line of text. Defaults to ``False`` which centers
288+
the font on the display.
287289
:param int padding_above: Add padding above the displayed line of text. A ``padding_above``
288290
of ``1`` is equivalent to the height of one line of text, ``2``
289291
is equivalent to the height of two lines of text, etc. Defaults
@@ -485,7 +487,8 @@ def show_business_card(
485487
:param int name_scale: The scale of ``name_string``. Defaults to 1.
486488
:param name_font: The font for the name string. Defaults to ``terminalio.FONT``.
487489
:type name_font: ~BuiltinFont|~BDF|~PCF
488-
:param int font_background_color: The color of the font background, default is None (transparent)
490+
:param int font_background_color: The color of the font background, default is None
491+
(transparent)
489492
:param int font_color: The font color, default is white
490493
:param str email_string_one: A string to display along the bottom of the display, e.g.
491494

0 commit comments

Comments
 (0)