diff --git a/.pylintrc b/.pylintrc index 5c31f66..256ac2f 100644 --- a/.pylintrc +++ b/.pylintrc @@ -22,8 +22,8 @@ ignore-patterns= #init-hook= # Use multiple processes to speed up Pylint. -# jobs=1 -jobs=2 +jobs=1 +# jobs=2 # List of plugins (as comma separated values of python modules names) to load, # usually to register additional checkers. @@ -253,7 +253,7 @@ ignore-docstrings=yes ignore-imports=no # Minimum lines number of a similarity. -min-similarity-lines=4 +min-similarity-lines=50 [BASIC] diff --git a/examples/rgb_display_pillow_bonnet_buttons.py b/examples/rgb_display_pillow_bonnet_buttons.py index b6f1913..4c2cdc0 100644 --- a/examples/rgb_display_pillow_bonnet_buttons.py +++ b/examples/rgb_display_pillow_bonnet_buttons.py @@ -156,11 +156,11 @@ draw.ellipse((190, 40, 230, 80), outline=button_outline, fill=B_fill) # B button # make a random color and print text - rcolor = tuple([int(x * 255) for x in hsv_to_rgb(random.random(), 1, 1)]) + rcolor = tuple(int(x * 255) for x in hsv_to_rgb(random.random(), 1, 1)) draw.text((20, 150), "Hello World", font=fnt, fill=rcolor) - rcolor = tuple([int(x * 255) for x in hsv_to_rgb(random.random(), 1, 1)]) + rcolor = tuple(int(x * 255) for x in hsv_to_rgb(random.random(), 1, 1)) draw.text((20, 180), "Hello World", font=fnt, fill=rcolor) - rcolor = tuple([int(x * 255) for x in hsv_to_rgb(random.random(), 1, 1)]) + rcolor = tuple(int(x * 255) for x in hsv_to_rgb(random.random(), 1, 1)) draw.text((20, 210), "Hello World", font=fnt, fill=rcolor) # Display the Image