Skip to content

Commit 85380a2

Browse files
committed
Address pylint issues
1 parent 82ce3ab commit 85380a2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

adafruit_bitmapsaver.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
__version__ = "0.0.0-auto.0"
5353
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_BitmapSaver.git"
5454

55-
#pylint:disable=line-too-long,broad-except,redefined-outer-name
55+
#pylint:disable=line-too-long,broad-except,redefined-outer-name,invalid-name
5656

5757
def _write_bmp_header(output_file, filesize):
5858
output_file.write(bytes('BM', 'ascii'))
@@ -88,6 +88,7 @@ def _rgb565_to_bgr_tuple(color):
8888
red = (color >> 8) & 0x00F8
8989
return (blue, green, red)
9090

91+
#pylint:disable=too-many-locals
9192
def _write_pixels(output_file, pixel_source, palette):
9293
saving_bitmap = isinstance(pixel_source, Bitmap)
9394
w, h = _rotated_height_and_width(pixel_source)
@@ -111,6 +112,7 @@ def _write_pixels(output_file, pixel_source, palette):
111112
buffer_index += 1
112113
output_file.write(row_buffer)
113114
gc.collect()
115+
#pylint:enable=too-many-locals
114116

115117
def save_pixels(file_or_filename, pixel_source=board.DISPLAY, palette=None):
116118
"""Save pixels to a 24 bit per pixel BMP file.

examples/screenshot_simpletest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222

2323
"""Example of taking a screenshot."""
2424

25+
#pylint:disable=invalid-name
2526
import board
2627
import digitalio
2728
import busio

0 commit comments

Comments
 (0)