From 88b1f09faaecf3de561226e785e99eac3203a5a8 Mon Sep 17 00:00:00 2001 From: Jeff Epler Date: Sun, 23 Aug 2020 11:01:52 -0500 Subject: [PATCH] remove bad-whitespace pylint directive --- adafruit_tcs34725.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/adafruit_tcs34725.py b/adafruit_tcs34725.py index 34cc0cb..183737f 100644 --- a/adafruit_tcs34725.py +++ b/adafruit_tcs34725.py @@ -57,7 +57,6 @@ __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_TCS34725.git" # Register and command constants: -# pylint: disable=bad-whitespace _COMMAND_BIT = const(0x80) _REGISTER_ENABLE = const(0x00) _REGISTER_ATIME = const(0x01) @@ -80,7 +79,6 @@ _CYCLES = (0, 1, 2, 3, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60) _INTEGRATION_TIME_THRESHOLD_LOW = 2.4 _INTEGRATION_TIME_THRESHOLD_HIGH = 614.4 -# pylint: enable=bad-whitespace class TCS34725: @@ -121,7 +119,6 @@ def color_rgb_bytes(self): # Avoid divide by zero errors ... if clear = 0 return black if clear == 0: return (0, 0, 0) - # pylint: disable=bad-whitespace red = int(pow((int((r / clear) * 256) / 255), 2.5) * 255) green = int(pow((int((g / clear) * 256) / 255), 2.5) * 255) blue = int(pow((int((b / clear) * 256) / 255), 2.5) * 255) @@ -288,7 +285,7 @@ def _temperature_and_lux_dn40(self): Also computes lux. Returns tuple with both values or tuple of Nones if computation can not be done. """ - # pylint: disable=bad-whitespace, invalid-name, too-many-locals + # pylint: disable=invalid-name, too-many-locals # Initial input values ATIME = self._read_u8(_REGISTER_ATIME)