Skip to content

remove bad-whitespace pylint directive #9

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
4 changes: 1 addition & 3 deletions adafruit_bmp3xx.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
_REGISTER_CONFIG = const(0x1F)
_REGISTER_CAL_DATA = const(0x31)
_REGISTER_CMD = const(0x7E)
# pylint: enable=bad-whitespace

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

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

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