diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 255369f..58a98ae 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,12 +6,12 @@ ci: repos: - repo: https://github.com/asottile/pyupgrade - rev: v2.31.0 + rev: v2.31.1 hooks: - id: pyupgrade args: [--py39-plus] - repo: https://github.com/psf/black - rev: 22.1.0 + rev: 22.3.0 hooks: - id: black args: @@ -38,7 +38,7 @@ repos: <<: &python-files files: ^(bumper/.+)?[^/]+\.py$ - repo: https://github.com/PyCQA/bandit - rev: 1.7.2 + rev: 1.7.4 hooks: - id: bandit args: @@ -51,7 +51,7 @@ repos: hooks: - id: isort - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.1.0 + rev: v4.2.0 hooks: - id: check-executables-have-shebangs - id: check-merge-conflict @@ -59,7 +59,7 @@ repos: - id: no-commit-to-branch - id: requirements-txt-fixer - repo: https://github.com/pre-commit/mirrors-prettier - rev: v2.5.1 + rev: v2.6.2 hooks: - id: prettier - repo: https://github.com/adrienverge/yamllint.git diff --git a/bumper/mqtt/helper_bot.py b/bumper/mqtt/helper_bot.py index c68455e..e90e623 100644 --- a/bumper/mqtt/helper_bot.py +++ b/bumper/mqtt/helper_bot.py @@ -53,13 +53,17 @@ class HelperBot: client: Client, topic: str, payload: bytes, qos: int, properties: dict ) -> None: try: - _LOGGER.debug("Got message: topic=%s; payload=%s;", topic, payload.decode()) + _LOGGER.debug( + "Got message: topic=%s; payload=%s;", topic, payload.decode() + ) topic_split = topic.split("/") data_decoded = str(payload.decode()) if topic_split[10] in self._commands: self._commands[topic_split[10]].add_response(data_decoded) except Exception: - _LOGGER.error("An exception occured during handling message.", exc_info=True) + _LOGGER.error( + "An exception occured during handling message.", exc_info=True + ) self._client.on_message = _on_message diff --git a/requirements-test.txt b/requirements-test.txt index 1a3012f..275567b 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -1,12 +1,12 @@ -mypy==0.931 -pre-commit==2.17.0 -pylint==2.12.2 -pytest==6.2.5 -pytest-aiohttp==1.0.3 -pytest-asyncio==0.17.2 +mypy==0.942 +pre-commit==2.18.1 +pylint==2.13.5 +pytest==7.1.1 +pytest-aiohttp==1.0.4 +pytest-asyncio==0.18.3 pytest-cov==3.0.0 pytest-env==0.6.2 pytest-timeout==2.1.0 -testfixtures==6.18.3 -types-cachetools==4.2.9 -types-setuptools==57.4.8 +testfixtures==6.18.5 +types-cachetools==5.0.0 +types-setuptools==57.4.12 diff --git a/requirements.txt b/requirements.txt index 6507fcf..89bce91 100644 --- a/requirements.txt +++ b/requirements.txt @@ -3,5 +3,5 @@ aiohttp-jinja2==1.5 amqtt==0.10.0 cachetools==5.0.0 gmqtt==0.6.11 -Jinja2==3.0.3 -tinydb==4.6.1 +Jinja2==3.1.1 +tinydb==4.7.0