From 1ee56439902265dd4e13c375868df6f352686f80 Mon Sep 17 00:00:00 2001 From: Josh Gadeken Date: Mon, 22 Oct 2018 20:40:11 -0600 Subject: [PATCH 1/2] Force pylint version 1.9.2 --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 0b226fe..1979294 100644 --- a/.travis.yml +++ b/.travis.yml @@ -23,6 +23,7 @@ deploy: install: - pip install -r requirements.txt - pip install pylint circuitpython-build-tools Sphinx sphinx-rtd-theme +- pip install --force-reinstall pylint==1.9.2 script: - pylint adafruit_bmp280.py - ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name examples/*.py) From de9ec716317807342bd64029922515c0bc3d6855 Mon Sep 17 00:00:00 2001 From: Josh Gadeken Date: Wed, 24 Oct 2018 20:19:44 -0600 Subject: [PATCH 2/2] Remove incompatible Pylint controls (Issue #8) `#pylint: disable=useless-import-alias` is not supported in Pylint 1.9.2 --- adafruit_bmp280.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/adafruit_bmp280.py b/adafruit_bmp280.py index 2b3e1b7..696dc64 100644 --- a/adafruit_bmp280.py +++ b/adafruit_bmp280.py @@ -171,7 +171,6 @@ class Adafruit_BMP280_I2C(Adafruit_BMP280): # pylint: disable=invalid-name """Driver for I2C connected BMP280. Default address is 0x77 but another address can be passed in as an argument""" def __init__(self, i2c, address=0x77): - # pylint: disable=useless-import-alias import adafruit_bus_device.i2c_device as i2c_device self._i2c = i2c_device.I2CDevice(i2c, address) super().__init__() @@ -195,7 +194,6 @@ class Adafruit_BMP280_SPI(Adafruit_BMP280): """Driver for SPI connected BMP280. Default clock rate is 100000 but can be changed with 'baudrate'""" def __init__(self, spi, cs, baudrate=100000): - # pylint: disable=useless-import-alias import adafruit_bus_device.spi_device as spi_device self._spi = spi_device.SPIDevice(spi, cs, baudrate=baudrate) super().__init__()