Skip to content

Commit

Permalink
Merge pull request #8 from process1183/pylint
Browse files Browse the repository at this point in the history
Force pylint version 1.9.2
  • Loading branch information
kattni authored Oct 25, 2018
2 parents 200e98b + de9ec71 commit 3d86853
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 0 additions & 2 deletions adafruit_bmp280.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__()
Expand All @@ -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__()
Expand Down

0 comments on commit 3d86853

Please sign in to comment.