Skip to content

Commit 488b7af

Browse files
authored
Merge pull request #9 from jepler/remove-bad-whitespace-directive
remove bad-whitespace pylint directive
2 parents 41ea378 + 51ff7d9 commit 488b7af

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

adafruit_bmp3xx.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@
6767
_REGISTER_CONFIG = const(0x1F)
6868
_REGISTER_CAL_DATA = const(0x31)
6969
_REGISTER_CMD = const(0x7E)
70-
# pylint: enable=bad-whitespace
7170

7271
_OSR_SETTINGS = (1, 2, 4, 8, 16, 32) # pressure and temperature oversampling settings
7372
_IIR_SETTINGS = (0, 2, 4, 8, 16, 32, 64, 128) # IIR filter coefficients
@@ -151,7 +150,7 @@ def reset(self):
151150
def _read(self):
152151
"""Returns a tuple for temperature and pressure."""
153152
# OK, pylint. This one is all kinds of stuff you shouldn't worry about.
154-
# pylint: disable=bad-whitespace, invalid-name, too-many-locals
153+
# pylint: disable=invalid-name, too-many-locals
155154

156155
# Perform one measurement in forced mode
157156
self._write_register_byte(_REGISTER_CONTROL, 0x13)
@@ -197,7 +196,6 @@ def _read(self):
197196
return pressure, temperature
198197

199198
def _read_coefficients(self):
200-
# pylint: disable=bad-whitespace, bad-continuation
201199
"""Read & save the calibration coefficients"""
202200
coeff = self._read_register(_REGISTER_CAL_DATA, 21)
203201
# See datasheet, pg. 27, table 22

0 commit comments

Comments
 (0)