upgrade dependencies
This commit is contained in:
parent
240a66155f
commit
cd84a6873d
4 changed files with 22 additions and 18 deletions
|
|
@ -6,12 +6,12 @@ ci:
|
||||||
|
|
||||||
repos:
|
repos:
|
||||||
- repo: https://github.com/asottile/pyupgrade
|
- repo: https://github.com/asottile/pyupgrade
|
||||||
rev: v2.31.0
|
rev: v2.31.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: pyupgrade
|
- id: pyupgrade
|
||||||
args: [--py39-plus]
|
args: [--py39-plus]
|
||||||
- repo: https://github.com/psf/black
|
- repo: https://github.com/psf/black
|
||||||
rev: 22.1.0
|
rev: 22.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
args:
|
args:
|
||||||
|
|
@ -38,7 +38,7 @@ repos:
|
||||||
<<: &python-files
|
<<: &python-files
|
||||||
files: ^(bumper/.+)?[^/]+\.py$
|
files: ^(bumper/.+)?[^/]+\.py$
|
||||||
- repo: https://github.com/PyCQA/bandit
|
- repo: https://github.com/PyCQA/bandit
|
||||||
rev: 1.7.2
|
rev: 1.7.4
|
||||||
hooks:
|
hooks:
|
||||||
- id: bandit
|
- id: bandit
|
||||||
args:
|
args:
|
||||||
|
|
@ -51,7 +51,7 @@ repos:
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v4.1.0
|
rev: v4.2.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: check-executables-have-shebangs
|
- id: check-executables-have-shebangs
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
|
|
@ -59,7 +59,7 @@ repos:
|
||||||
- id: no-commit-to-branch
|
- id: no-commit-to-branch
|
||||||
- id: requirements-txt-fixer
|
- id: requirements-txt-fixer
|
||||||
- repo: https://github.com/pre-commit/mirrors-prettier
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
||||||
rev: v2.5.1
|
rev: v2.6.2
|
||||||
hooks:
|
hooks:
|
||||||
- id: prettier
|
- id: prettier
|
||||||
- repo: https://github.com/adrienverge/yamllint.git
|
- repo: https://github.com/adrienverge/yamllint.git
|
||||||
|
|
|
||||||
|
|
@ -53,13 +53,17 @@ class HelperBot:
|
||||||
client: Client, topic: str, payload: bytes, qos: int, properties: dict
|
client: Client, topic: str, payload: bytes, qos: int, properties: dict
|
||||||
) -> None:
|
) -> None:
|
||||||
try:
|
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("/")
|
topic_split = topic.split("/")
|
||||||
data_decoded = str(payload.decode())
|
data_decoded = str(payload.decode())
|
||||||
if topic_split[10] in self._commands:
|
if topic_split[10] in self._commands:
|
||||||
self._commands[topic_split[10]].add_response(data_decoded)
|
self._commands[topic_split[10]].add_response(data_decoded)
|
||||||
except Exception:
|
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
|
self._client.on_message = _on_message
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
mypy==0.931
|
mypy==0.942
|
||||||
pre-commit==2.17.0
|
pre-commit==2.18.1
|
||||||
pylint==2.12.2
|
pylint==2.13.5
|
||||||
pytest==6.2.5
|
pytest==7.1.1
|
||||||
pytest-aiohttp==1.0.3
|
pytest-aiohttp==1.0.4
|
||||||
pytest-asyncio==0.17.2
|
pytest-asyncio==0.18.3
|
||||||
pytest-cov==3.0.0
|
pytest-cov==3.0.0
|
||||||
pytest-env==0.6.2
|
pytest-env==0.6.2
|
||||||
pytest-timeout==2.1.0
|
pytest-timeout==2.1.0
|
||||||
testfixtures==6.18.3
|
testfixtures==6.18.5
|
||||||
types-cachetools==4.2.9
|
types-cachetools==5.0.0
|
||||||
types-setuptools==57.4.8
|
types-setuptools==57.4.12
|
||||||
|
|
|
||||||
|
|
@ -3,5 +3,5 @@ aiohttp-jinja2==1.5
|
||||||
amqtt==0.10.0
|
amqtt==0.10.0
|
||||||
cachetools==5.0.0
|
cachetools==5.0.0
|
||||||
gmqtt==0.6.11
|
gmqtt==0.6.11
|
||||||
Jinja2==3.0.3
|
Jinja2==3.1.1
|
||||||
tinydb==4.6.1
|
tinydb==4.7.0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue