Skip to content

Commit 736c274

Browse files
authored
Merge pull request #90 from makermelissa/master
Fix pylint failing
2 parents 6cd328c + 1654795 commit 736c274

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.pylintrc

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ ignore-patterns=
2222
#init-hook=
2323

2424
# Use multiple processes to speed up Pylint.
25-
# jobs=1
26-
jobs=2
25+
jobs=1
26+
# jobs=2
2727

2828
# List of plugins (as comma separated values of python modules names) to load,
2929
# usually to register additional checkers.
@@ -253,7 +253,7 @@ ignore-docstrings=yes
253253
ignore-imports=no
254254

255255
# Minimum lines number of a similarity.
256-
min-similarity-lines=4
256+
min-similarity-lines=50
257257

258258

259259
[BASIC]

examples/rgb_display_pillow_bonnet_buttons.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,11 @@
156156
draw.ellipse((190, 40, 230, 80), outline=button_outline, fill=B_fill) # B button
157157

158158
# make a random color and print text
159-
rcolor = tuple([int(x * 255) for x in hsv_to_rgb(random.random(), 1, 1)])
159+
rcolor = tuple(int(x * 255) for x in hsv_to_rgb(random.random(), 1, 1))
160160
draw.text((20, 150), "Hello World", font=fnt, fill=rcolor)
161-
rcolor = tuple([int(x * 255) for x in hsv_to_rgb(random.random(), 1, 1)])
161+
rcolor = tuple(int(x * 255) for x in hsv_to_rgb(random.random(), 1, 1))
162162
draw.text((20, 180), "Hello World", font=fnt, fill=rcolor)
163-
rcolor = tuple([int(x * 255) for x in hsv_to_rgb(random.random(), 1, 1)])
163+
rcolor = tuple(int(x * 255) for x in hsv_to_rgb(random.random(), 1, 1))
164164
draw.text((20, 210), "Hello World", font=fnt, fill=rcolor)
165165

166166
# Display the Image

0 commit comments

Comments
 (0)