Skip to content

Commit 6e6bdd0

Browse files
committed
Run pre-commit
1 parent bc8e727 commit 6e6bdd0

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

adafruit_gfx/gfx.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
__version__ = "0.0.0+auto.0"
2626
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_GFX.git"
2727

28+
2829
# pylint: disable=invalid-name
2930
class GFX:
3031
# pylint: disable=too-many-instance-attributes
@@ -49,6 +50,7 @@ class GFX:
4950
:param font: An optional input to augment the default text method with a new font.
5051
The input should be a properly formatted dict.
5152
"""
53+
5254
# pylint: disable=too-many-arguments
5355
def __init__(
5456
self,
@@ -303,7 +305,8 @@ def fill_triangle(self, x0, y0, x1, y1, x2, y2, *args, **kwargs):
303305
def round_rect(self, x0, y0, width, height, radius, *args, **kwargs):
304306
"""Rectangle with rounded corners drawing function.
305307
This works like a regular rect though! if radius = 0
306-
Will draw the outline of a rectangle with rounded corners with (x0,y0) at the top left"""
308+
Will draw the outline of a rectangle with rounded corners with (x0,y0) at the top left
309+
"""
307310
# shift to correct for start point location
308311
x0 += radius
309312
y0 += radius

examples/gfx_ili9341_randlines.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ def randrange(min_value, max_value):
3232
# Setup ILI9341 display using TFT FeatherWing pinout for CS & DC pins.
3333
display = ili9341.ILI9341(spi, cs=machine.Pin(0), dc=machine.Pin(15))
3434

35+
3536
# Optionally create faster horizontal and vertical line drawing functions using
3637
# the display's native filled rectangle function (which updates chunks of memory
3738
# instead of pixel by pixel).

font_maker.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@
220220
for key, val in text_dict.items():
221221
# print (i)
222222
try:
223-
224223
# print(text_dict[i])
225224
print((2 + (len(val))))
226225
arr = bytearray(2 + (len(val)))
@@ -229,7 +228,6 @@
229228
arr[1] = 8
230229

231230
for j in range(len(text_dict[key])):
232-
233231
arr[j + 2] = text_dict[key][j] & 0b01111111
234232

235233
out[str(key)] = arr

0 commit comments

Comments
 (0)