Skip to content

Commit

Permalink
Scheduled monthly dependency update for October (#219)
Browse files Browse the repository at this point in the history
* Update twine from 1.13.0 to 2.0.0

* Update pylint from 2.3.1 to 2.4.2

* Update pytest from 5.1.2 to 5.2.0

* Fix lint except unnecessary-comprehension

* Temporary disable unnecessary-comprehension
  • Loading branch information
pyup-bot authored and MartinHjelmare committed Oct 3, 2019
1 parent d29d7d4 commit 19a4b7c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
6 changes: 4 additions & 2 deletions mysensors/cli/gateway_mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ class MQTTClient:
def __init__(self, broker, port=1883, keepalive=60):
"""Set up MQTT client."""
try:
import paho.mqtt.client as mqtt # pylint: disable=import-error
# pylint: disable=import-error, import-outside-toplevel
import paho.mqtt.client as mqtt
except ImportError:
_LOGGER.error(
'paho.mqtt.client is missing. '
Expand Down Expand Up @@ -224,7 +225,8 @@ def unregister_write(self, client, userdata, sock):

async def run_misc_loop(self):
"""Provide loop for paho mqtt."""
import paho.mqtt.client as mqtt # pylint: disable=import-error
# pylint: disable=import-error, import-outside-toplevel
import paho.mqtt.client as mqtt
while self._client.loop_misc() == mqtt.MQTT_ERR_SUCCESS:
try:
await asyncio.sleep(1)
Expand Down
2 changes: 1 addition & 1 deletion mysensors/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def is_version(value):
"""Validate that value is a valid version string."""
try:
value = str(value)
if not parse_ver('1.4') <= parse_ver(value):
if parse_ver('1.4') > parse_ver(value):
raise ValueError()
return value
except (AttributeError, TypeError, ValueError):
Expand Down
2 changes: 1 addition & 1 deletion requirements_pypi.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pygcgen==0.2.4
setuptools==41.2.0
twine==1.13.0
twine==2.0.0
wheel==0.33.6
4 changes: 2 additions & 2 deletions requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
flake8==3.7.8
pylint==2.3.1
pytest==5.1.2
pylint==2.4.2
pytest==5.2.0
pytest-cov==2.7.1
pytest-sugar==0.9.2
pytest-timeout==1.3.3
Expand Down
2 changes: 2 additions & 0 deletions tests/test_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
from mysensors.const_14 import Internal, MessageType
from mysensors.task import SyncTasks

# pylint: disable=unnecessary-comprehension

PRES_FIXTURES_14 = {
'S_DOOR': 'Front Door',
'S_ARDUINO_NODE': '1.4',
Expand Down

0 comments on commit 19a4b7c

Please sign in to comment.