Skip to content

Commit 8d4c7e8

Browse files
authored
Merge pull request #32 from jepler/remove-bad-whitespace-directive
remove bad-whitespace pylint directive
2 parents 1dbf9ec + 88b1f09 commit 8d4c7e8

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

adafruit_tcs34725.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_TCS34725.git"
5858

5959
# Register and command constants:
60-
# pylint: disable=bad-whitespace
6160
_COMMAND_BIT = const(0x80)
6261
_REGISTER_ENABLE = const(0x00)
6362
_REGISTER_ATIME = const(0x01)
@@ -80,7 +79,6 @@
8079
_CYCLES = (0, 1, 2, 3, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60)
8180
_INTEGRATION_TIME_THRESHOLD_LOW = 2.4
8281
_INTEGRATION_TIME_THRESHOLD_HIGH = 614.4
83-
# pylint: enable=bad-whitespace
8482

8583

8684
class TCS34725:
@@ -121,7 +119,6 @@ def color_rgb_bytes(self):
121119
# Avoid divide by zero errors ... if clear = 0 return black
122120
if clear == 0:
123121
return (0, 0, 0)
124-
# pylint: disable=bad-whitespace
125122
red = int(pow((int((r / clear) * 256) / 255), 2.5) * 255)
126123
green = int(pow((int((g / clear) * 256) / 255), 2.5) * 255)
127124
blue = int(pow((int((b / clear) * 256) / 255), 2.5) * 255)
@@ -288,7 +285,7 @@ def _temperature_and_lux_dn40(self):
288285
Also computes lux. Returns tuple with both values or tuple of Nones
289286
if computation can not be done.
290287
"""
291-
# pylint: disable=bad-whitespace, invalid-name, too-many-locals
288+
# pylint: disable=invalid-name, too-many-locals
292289

293290
# Initial input values
294291
ATIME = self._read_u8(_REGISTER_ATIME)

0 commit comments

Comments
 (0)