Skip to content

remove bad-whitespace pylint directive #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions adafruit_tcs34725.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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:
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand Down