diff --git a/.travis.yml b/.travis.yml index 4956020..eee4ccb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,7 +6,7 @@ python: cache: pip: true deploy: - provider: releases +- provider: releases api_key: "$GITHUB_TOKEN" file_glob: true file: "$TRAVIS_BUILD_DIR/bundles/*" @@ -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_thermistor.py - ([[ ! -d "examples" ]] || pylint --disable=missing-docstring,invalid-name examples/*.py) diff --git a/docs/conf.py b/docs/conf.py index b3b3f12..5c5852e 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -18,7 +18,7 @@ # Uncomment the below if you use native CircuitPython modules such as # digitalio, micropython and busio. List the modules you use. Without it, the # autodoc module docs will fail to generate with a warning. -# autodoc_mock_imports = ["analogio"] +autodoc_mock_imports = ["analogio"] intersphinx_mapping = {'python': ('https://docs.python.org/3.4', None),'CircuitPython': ('https://circuitpython.readthedocs.io/en/latest/', None)} diff --git a/examples/thermistor_simpletest.py b/examples/thermistor_simpletest.py index 5fc1147..1af540e 100644 --- a/examples/thermistor_simpletest.py +++ b/examples/thermistor_simpletest.py @@ -1,10 +1,11 @@ import time -import adafruit_thermistor import board +import adafruit_thermistor # these values work with the Adafruit CircuitPlayground Express. # they may work with other thermistors as well, as they're fairly standard, # though the pin will likely need to change (ie board.A1) +# pylint: disable=no-member pin = board.TEMPERATURE resistor = 10000 resistance = 10000